Rails App crashes when deployed to Heroku, not sure what to make of the logs, started when 1.9.1->1.9.3 Rails App crashes when deployed to Heroku, not sure what to make of the logs, started when 1.9.1->1.9.3 heroku heroku

Rails App crashes when deployed to Heroku, not sure what to make of the logs, started when 1.9.1->1.9.3


Well I've solved it. The clue in the logs was:

2013-01-09T03:01:08+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.10/lib/rails/commands/server.rb:33:in `parse!' (OptionParser::InvalidArgument)

Which indicated that the thin webserver was unable to start with the arguments passed. Based on this: https://devcenter.heroku.com/articles/rails3, I changed my procfile from:

web: bundle exec rails server thin -p $PORT

To this:

web: bundle exec rails server thin -p $PORT -e $RACK_ENV

And set the RACK_ENV to staging in my environment with this:

$ echo "RACK_ENV=development" >>.env

Now it works and on to other issues.