Heroku pipeline - 代码链接到哪个应用程序
Heroku pipeline - which app is code linked to
我一直在部署到 heroku 上的单个应用程序。我决定创建一个管道并将此应用程序设置为生产应用程序。我创建了一个用于暂存的新应用程序。
gitpush heroku master 本地代码应该链接到哪个应用推送?它是登台应用程序还是生产应用程序?
我是否需要 运行 一个命令让我的本地存储库知道我想将它发送到登台应用程序?
Do I need to run a command to let my local repo know that I want it sent to the staging app?
参见“Heroku: Managing Multiple Environments for an App”
命令为:
git config heroku.remote staging
Once this is set up, all heroku
commands will default to the staging
app.
To run a command on the production app, simply use the --remote production
option.
OP Joshua Foxworth adds :
Turns out that even after running the config command, I still had to specify the staging app.
git config heroku.remote staging
Then:
git push staging master
我一直在部署到 heroku 上的单个应用程序。我决定创建一个管道并将此应用程序设置为生产应用程序。我创建了一个用于暂存的新应用程序。
gitpush heroku master 本地代码应该链接到哪个应用推送?它是登台应用程序还是生产应用程序?
我是否需要 运行 一个命令让我的本地存储库知道我想将它发送到登台应用程序?
Do I need to run a command to let my local repo know that I want it sent to the staging app?
参见“Heroku: Managing Multiple Environments for an App”
命令为:
git config heroku.remote staging
Once this is set up, all
heroku
commands will default to thestaging
app.
To run a command on the production app, simply use the--remote production
option.
OP Joshua Foxworth adds
Turns out that even after running the config command, I still had to specify the staging app.
git config heroku.remote staging
Then:
git push staging master