我的Heroku git回购有两个应用程序。它是使用分叉配置的
因此,我可以部署到如下所示的diff服务器:git push production master git push stage dev:master
并使用--app参数:heroku logs --app superlongappname-stage heroku logs --app superlongappname检查日志/etc
凉爽的。但是,每次我想要使用临时服务器时,输入‘超长名称阶段’是很麻烦的事。
有没有办法用“舞台”代替“超长名称-阶段”?例如,heroku logs --app stage heroku logs --app production或更好的有舞台是默认的:heroku logs heroku logs --app production
谢谢!
麦克
发布于 2014-05-03 17:26:28
只是重命名你的应用程序怎么样?这里上的Heroku文档。
基本上,从您的CLI:
heroku apps:rename stage --app superlongappname-stage
heroku apps:rename production --app superlongappname请注意,您可能需要使用简单的“stage”或“production”以外的其他东西,因为它需要一个惟一的名称(stage.heroku.com),而且我猜stage和production已经被使用了。关键是你可以把它变成简单的东西。
此外,请记住更新您的git遥控器。在git签出目录中:
git remote rm heroku
heroku git:remote -a stagehttps://stackoverflow.com/questions/23445671
复制相似问题