Jason S. wrote:
I built my rails app locally, and just today put it all online.
Getting a “Application error (Rails)” when trying to submit some form
parameters to the db.
What needs to be done with going from local development to live?
I’m not sure if/where I need to set my app to “production” status.
Also, is there any way to debug “Application error (Rails)”??
Look in the log files. It should tell you what the error is. If you
are seeing that messge you are in production mode, so look in
log/production.log. The environment is set via variable passed from the
webserver config, or from config/evironment.rb. You should see a
commented few lines in there:
Uncomment below to force Rails into production mode when
you don’t control web/app server and can’t set it the proper way
ENV[‘RAILS_ENV’] ||= ‘production’
That will set it to production mode, although it should ideally be set
by the web server.