Hi I want to know what I need to do in order to enable the production mode in RoR.
When I add the line RailsEnv production to my Apache, after restart it I get an error message "We're sorry, but something went wrong. apache ruby".
The logs are empty, I migrated the db in production mode, compiled the assets, set RAILS_ENV to install all, but I can not run in production, in development works fine.
I use Apache2 + Passenger. Would you help me?
Thank you in advance!
Assuming you have your production database information correctly defined in config/database.yml
You can start Rails in Production mode by launching your application like this:
$ rails s -e production -p 80 --bind=0.0.0.0
More information about Rails environment settings can be found here: http://guides.rubyonrails.org/configuring.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.