Gerard
Gerard

Reputation: 4848

Determine which heroku app to push to

I checked out a project on github and now wish to deploy to heroku. When I enter '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.

Upvotes: 0

Views: 315

Answers (3)

Arun Kumar Arjunan
Arun Kumar Arjunan

Reputation: 6857

git remote add heroku [email protected]:your-app.git
git push heroku master

Upvotes: 1

Dogbert
Dogbert

Reputation: 222168

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

git remote -v

Upvotes: 0

RyanWilcox
RyanWilcox

Reputation: 13972

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

Upvotes: 0

Related Questions