Heroku application error

217 views
Skip to first unread message

The Trystero

unread,
Sep 30, 2011, 1:02:31 AM9/30/11
to rubyonra...@googlegroups.com
i'm following along with michael hartl's tutorial
(http://ruby.railstutorial.org/chapters/a-demo-app#top), creating a demo
app.

i pushed my app/db/data on to heroku (falling-sky-4350.heroku.com/), but
am getting an error

An error occurred in the application and your page could not be served.
Please try again in a few moments.

If you are the application owner, check your logs for details.


my heroku log is attached. can someone please help me to suss it out?
thanks.

Attachments:
http://www.ruby-forum.com/attachment/6643/heroku.error


--
Posted via http://www.ruby-forum.com/.

G S RAO

unread,
Sep 30, 2011, 1:30:55 AM9/30/11
to rubyonra...@googlegroups.com
Same heroku log I am also having. If you find solution Please send to subbar...@gmail.com


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.




--
-------------Regards---------------
G SubbaRao
Cell:08970668850
E-Mail:subbar...@gmail.com

Norbert Melzer

unread,
Sep 30, 2011, 3:02:07 AM9/30/11
to rubyonra...@googlegroups.com

Put postgres in your Gemfile . As far as I remember the Jeromy FAQ points to this issue.

HTH Norbert

--
send by Samsung Galaxy Tab with Overcome Mod

zver

unread,
Sep 30, 2011, 4:22:22 AM9/30/11
to Ruby on Rails: Talk
Hi!

Look at mine Gemfile. Perhapse you find some idea how to set "pg" gem.

https://github.com/otobrglez/mauto/blob/master/Gemfile

- Oto


On 30 sep., 09:02, Norbert Melzer <timmel...@googlemail.com> wrote:
> Put postgres in your Gemfile . As far as I remember the Jeromy FAQ points to
> this issue.
>
> HTH Norbert
>
> --
> send by Samsung Galaxy Tab with Overcome Mod
> Am 30.09.2011 07:02 schrieb "The Trystero" <li...@ruby-forum.com>:
>
>
>
>
>
>
>
> > i'm following along with michael hartl's tutorial
> > (http://ruby.railstutorial.org/chapters/a-demo-app#top), creating a demo
> > app.
>
> > i pushed my app/db/data on to heroku (falling-sky-4350.heroku.com/), but
> > am getting an error
>
> > An error occurred in the application and your page could not be served.
> > Please try again in a few moments.
>
> > If you are the application owner, check your logs for details.
>
> > my heroku log is attached. can someone please help me to suss it out?
> > thanks.
>
> > Attachments:
> >http://www.ruby-forum.com/attachment/6643/heroku.error
>
> > --
> > Posted viahttp://www.ruby-forum.com/.

Norbert Melzer

unread,
Sep 30, 2011, 10:40:53 AM9/30/11
to rubyonra...@googlegroups.com
2011/9/30 zver <otob...@gmail.com>:

> Hi!
>
> Look at mine Gemfile. Perhapse you find some idea how to set "pg" gem.
>
> https://github.com/otobrglez/mauto/blob/master/Gemfile

As far as I understand the working of heroku deploy, it does not look
at your Gemfile, but at your Gemfile.lock, so if you "bundle install
--without production" (or what ever the command was), pg will not be
in your Gemfile.lock, so heroku does not see it! Same point is for
your rubyracer-gem... So you should make them visible even for your
dev-env.

Its possible that I am wrong, but even then I would prefer to use
postgres in development, so stumble over problems with pg already
locally and dont have to debug with remote when there are any problems
in the pg-implemention.

> - Oto

HTH
Norbert

Sushil Gupta

unread,
Sep 30, 2011, 11:29:28 AM9/30/11
to rubyonra...@googlegroups.com
I'm also having an same error with http://smoothipod.heroku.com/ while following with http://ruby.railstutorial.org/chapters/beginning#top by Michael Hartl. Also another  similar (little different) error with http://meinkampf.heroku.com/.

The strange thing is, both of these applications work on my http://localhost:3000 but not on heroku. I am stuck in this since yesterday and haven't found any solutions yet. Any help would be really great. Thanks in advance. :)

aa...@xmission.com

unread,
Oct 1, 2011, 12:12:44 PM10/1/11
to Sushil Gupta, rubyonra...@googlegroups.com
Try using

Heroku logs

To get more info on the errors.....  I ran into problems at first because I needed to set up  postgresql for production...


Sent from my HTC on the Now Network from Sprint!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/a7UcjUwcuWkJ.

Zach S.

unread,
Oct 7, 2011, 4:31:59 PM10/7/11
to rubyonra...@googlegroups.com
I also ran into the same error after following the instructions when
following the instructions in Ruby on Rails Tutorial: Learn Rails by
Example http://ruby.railstutorial.org/chapters/beginning#top by
Michael Hartl.

The problem is that Heroku doesn't support the SQLite.

The solution is to convert your database to either MongoDB or
PostgreSQL. The instructions can be found at
http://railsapps.github.com/rails-heroku-tutorial.html.

Sushil Gupta

unread,
Oct 8, 2011, 4:27:57 AM10/8/11
to rubyonra...@googlegroups.com
Thank you, that worked. :)
Reply all
Reply to author
Forward
0 new messages