开发者

Determine which heroku app to push to

I checked out a project on github and now wish to deploy to heroku. When I enter开发者_StackOverflow 'heroku apps' it displays all the apps on my account. How can I tell which app I'll push to when I run

git push heroku master

Thanks, Gearoid.


git remote add heroku git@heroku.com:your-app.git
git push heroku master


Set up a heroku git remote - the General Info of the app on Heroku will list a git path

Set it up by, in your Git directory on your machine:

$ git remote add heroku (THAT URL)

then git push heroku master will know where to do


You can view the url of heroku remote on the current repo by doing

git remote -v
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜