2013-01-11 23 views
3

請幫幫我, 當我想上傳一個軌應用的Heroku我做這個順序和工作在Heroku上創建一個新的項目如何使用已經存在的Heroku的應用

git init 
git add . 
git commit -m "init" 
heroku create 
git push heroku master 

,然後我得到新的URL相像,我需要部署一個項目

我不知道以後該怎麼使用的項目,而無需創建其他新的Heroku項目 我想使用類似的git的拉動,但我不知道怎麼時間http://-somethingdiferent-.herokuapp.com是對heroku的拉動,也許-git pull heroku高手?但在這種情況下,我該如何拉同一個項目?

如果您知道序列或任何教程,請問我會喜歡嗎?

感謝

回答

9

嘗試創建一個應用程序第一

# run this command from the app folder to create a new app 
$ heroku open --app the-app-name 

# Add it to the remote 
$ heroku git:remote -a the-app-name 

# push app to heroku 
$ git push heroku master 

the-app-name,由應用程序的名稱來代替。

人們可以找到更多有用的東西here

相關問題