开发者

How to switch environment in Rails 3?

开发者 https://www.devze.com 2023-01-11 19:52 出处:网络
H开发者_运维技巧ow can one switch environment in Rails 3?Use the environment flag: rails s --environment=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
0

精彩评论

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