如何在两个不同的heroku项目中提供一个本地git仓库?

时间:2018-03-20 12:53:18

标签: git heroku

我已经let jsonString = `{"Address":["Home","","Home,\\nHoover House 85","","Home","","","","",""],"BloodGroup":["o+","","B+","B+","AB+","o+","o-","","",""],"Occupation":["Vendor","","Carpenter","Playing","Nurse","IT professional","Engineer","Doctor","",""],"Alternate":["0","0","925","0","0","0","0","0","0","0"],"Email":["some@site.com","","jim@site.com","","","","arun@site.com","","",""],"Mobile":["90000006","90000005","90000005","34344444","902w0w05","90002005","900020w5","90000005","90002105","90000005"],"Marital":["Married","Married","Married","Unmarried","Unmarried","Married","Married","Married","Married","Married"],"Gender":["1","2","","1","1","2","2","1","1","1"],"Age":["28","65","35","2","25","34","31","28","60","58"],"Name":["Tracy Jim","George Jose","Jim G Mathew","Cary jim","Becky Mathew","Cary Guy","Arun Mose","Tracy Kelly","Dr Kim","Steven Ludwig"],"HospitalID":["3","5","6","7","8","9","10","11","12","16"]}`; let json = JSON.parse(jsonString); console.log(json.Address);在我当地的回购下了一个项目。这个是默认的和更新的heroku-16堆栈。

然后我使用旧的cedar-16堆栈创建了一个堆栈。

我现在想知道,如何在我的第二个cedar-16堆栈上提供相同的git repo?

1 个答案:

答案 0 :(得分:0)

如果您使用git进行部署,则可以将您创建的其他应用程序添加为第二个远程:

git remote add my-remote-name https://git.heroku.com/my-application-slug.git

然后,您可以将存储库推送到新的远程:git push my-remote-name master