Heroku application error

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

Same heroku log I am also having. If you find solution Please send to subbarao.kly@gmail.com

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

HTH Norbert

Hi!

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

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

- Oto

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

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. :slight_smile:

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.

Thank you, that worked. :slight_smile: