H开发者_运维技巧ow can one switch environment in Rails 3?
Use the environment flag:
rails s --environment=production
Or set the RAILS_ENV
environment variable.
If you want to save keystrokes:
rails s -e production
H开发者_运维技巧ow can one switch environment in Rails 3?
Use the environment flag:
rails s --environment=production
Or set the RAILS_ENV
environment variable.
If you want to save keystrokes:
rails s -e production
精彩评论