ruby-on-rails – 如何从命令行重新启动Rails应用程序时定义环境?

栏目: Ruby · 发布时间: 7年前

如何从命令行重新启动Rails应用程序时定义环境?

如果您的意思是如何告诉rails从命令行启动服务器时要加载哪个环境,请按以下步骤操作:
rails server -e production

翻译自:https://stackoverflow.com/questions/5609882/how-can-i-define-the-environment-when-restarting-a-rails-app-from-the-command-li

转载注明原文: ruby-on-rails – 如何从命令行重新启动Rails应用程序时定义环境?


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Letting Go of the Words

Letting Go of the Words

Janice (Ginny) Redish / Morgan Kaufmann / 2007-06-11 / USD 49.95

"Redish has done her homework and created a thorough overview of the issues in writing for the Web. Ironically, I must recommend that you read her every word so that you can find out why your customer......一起来看看 《Letting Go of the Words》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试