Rohit Rayudu
Rohit Rayudu

Reputation: 3951

Git Push - Heroku & BitBucket

I push changes and it says it commits them. And I use heroku run python and it still is using the old code.

How do I get it to commit to Heroku?

I have checked git remote -v and it says - which is correct - there are two remotes - one to BitBucket and one to Heroku - but why doesn't Heroku update the changes.

The only way I can update changes is to use git push heroku master which takes a lot of time. Is there a faster approach

Upvotes: 3

Views: 2071

Answers (1)

Rory
Rory

Reputation: 95

Create a third remote that contains both locations.

git remote add all ssh://[email protected]/bitbucketusername/bitbucketreponame.git
git remote set-url --add all [email protected]:yourherokuappname.git
git push all master

Upvotes: 3

Related Questions