如何使用已存在的heroku应用程序

dex*_*00x 3 ruby-on-rails

请帮助我,当我想将一个rails应用程序上传到heroku时,我执行此序列并在heroku上创建一个新项目

git init
git add .
git commit -m "init" 
heroku create
git push heroku master
Run Code Online (Sandbox Code Playgroud)

每次我需要部署一个项目时,我会得到一个像http://-somethingdiferent-.herokuapp.com这样的新网址

我不知道如何在不创建其他新的heroku项目的情况下使用该项目我正在考虑使用像git一样的东西,但我不知道如何拉动heroku,也许-git pull heroku master?但在那种情况下,我怎么能拉同一个项目?

如果您知道序列或任何教程,我会想要吗?

谢谢

Hel*_*tos 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
Run Code Online (Sandbox Code Playgroud)

the-app-name 应由应用程序名称替换.

人们可以在这里找到更有用的东西.