2017-02-06 28 views
0

抱歉的初學者問題,但我不知道我是否做正確的事情。 我是一個初學者,有heroku,node.js和git!git heroku最好的方式來更新項目

我已經部署本指南以下節點JS應用的Heroku: https://devcenter.heroku.com/articles/git

一切正常,我沒有問題。 我現在的問題是如何在工作時更新heroku中的文件?

目前,我這樣做:

git的承諾-m 「一些信息」

然後

混帳推Heroku的主

它的工作原理,但它看起來是重新創建整個應用程序。

我按照正確的程序? 謝謝!

回答

1

您正在按照正確的程序更新您的Heroku應用程序。 當你git推到Heroku時,你的代碼被「slug編譯器」接收,它將你的版本庫轉換成一個slug。請參閱https://devcenter.heroku.com/articles/slug-compiler

+0

謝謝,我會讀更多的東西.. 所以我需要git推都到heroku和github,以保持我的項目更新..有什麼辦法可以同步這些沒有做兩個推動? – jsabina

+0

您可以使用Heroku Github Integration(請參閱https://devcenter.heroku.com/articles/github-integration)。這樣,只要您推送到您選擇的github分支,您就可以將自動部署配置爲heroku。 –

相關問題