supriya
supriya

Reputation: 108

rails 3.2 : can not run in production mode

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

Answers (2)

castilhor
castilhor

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

zsquare
zsquare

Reputation: 10146

Adding RAILS_ENV="production" to application.rb wont help. Read the Heroku documentation on getting started.

Upvotes: 0

Related Questions