开发者

How to switch environment in Rails 3?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜