开发者

How to set Rails application to Production mode? I'm using capistrano

开发者 https://www.devze.com 2023-01-28 15:53 出处:网络
How to 开发者_Python百科set Rails application to Production mode?I\'m using capistrano On my server, doing a rails console shows its in development mode (puts RAILS_ENV)It really depends on the softw

How to 开发者_Python百科set Rails application to Production mode? I'm using capistrano

On my server, doing a rails console shows its in development mode (puts RAILS_ENV)


It really depends on the software you're using to serve your production site. For example, Passenger sets the environment to production by default.

You should investigate the configuration for your production application server.


Make sure you include

ENV['RAILS_ENV'] ||= 'production'

in your environment.rb file.

0

精彩评论

暂无评论...
验证码 换一张
取 消