将rails应用程序部署到Heroku时如何切换env(test, prod)?
我正在尝试在 Heroku 上为我的应用程序设置暂存环境。每次我推送我的存储库时,它都会以生产模式部署/运行应用程序。我需要做什么才能使应用程序在其他模式下运行。
I am trying to setup a staging env for my app on Heroku. And everytime I push my repo it deploys/runs the application in production
mode. What do I need to do to make the app run in some other mode.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅关于配置和配置变量的 Heroku 文章的最后一部分。
简而言之:
另请注意不要错过该部分附带的注释:
See the last section in this Heroku article on Configuration and Config Vars.
In brief, though:
Also be careful not to miss the note that accompanies that section: