Reputation: 108
There is a problem while running the application in production mode. I want to set as default to run it as production.
RAILS_ENV="production"
I added above line in application.rb but no luck. Any idea how to make it possible. When I am uploading app to heroku it still runs in development, due to which I am not able to keep my databases separate.
Upvotes: 0
Views: 208
Reputation: 36
The application.rb is not the best place to define environment variables. On Heroku, you can define RAILS_ENV with heroku config:add RAILS_ENV=production
Upvotes: 1
Reputation: 10146
Adding RAILS_ENV="production"
to application.rb
wont help. Read the Heroku documentation on getting started.
Upvotes: 0