Heroku - 从多台计算机部署? [英] Heroku -- deployment from multiple computers?

查看:142
本文介绍了Heroku - 从多台计算机部署?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两台电脑,我希望他们都能够从github上的同一个repo上拉/推,以及部署到heroku上的同一个应用程序。我知道Heroku允许你在另一台计算机上克隆它的git repo,因此它可以连接起来,但我不想第二个克隆heroku repo - 我想它克隆git repo,然后让两台计算机都可以当任一人部署时能够更新heroku ...我该怎么做?已经成功连接到同一个github,但现在我想将它们连接到同一个heroku应用程序。 解决方案

git remote add heroku git@heroku.com:your_app_name.git


I have two computers and I want both of them to be able to pull/push from the same repo on github as well as deploy to the same app on heroku. I know that Heroku allows you to clone its git repo on another computer so it can be linked up too, but I don't want the second to clone the heroku repo - i want it to clone the git repo and then have both computers be able to update heroku when either one deploys... how do I do this? Already the two are connected to the same github successfully but I now want to connect them to the same heroku app.

解决方案

git remote add heroku git@heroku.com:your_app_name.git

这篇关于Heroku - 从多台计算机部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆