Antoine
Antoine

Reputation: 569

How to push to a heroku forked project?

I have an app: betsmart_us and I did a heroku betsmart_eu --region eu which created a new forked heroku app: betsmart_eu.

I can not figure a way to push changes or run rake task from my terminal to the new forked heroku app. How can I retrieve the source code of that newly created app so that I can push and test rake task from my terminal.

I tried to do a heroku clone but the forked app apears to be an empty repo. Yet, the forked app works fine on heroku.

Some light on this will be very much appreciated. Thanks a lot !

Antoine.

Upvotes: 0

Views: 265

Answers (2)

user1322092
user1322092

Reputation: 4280

See https://devcenter.heroku.com/articles/fork-app

Forking your application doesn’t automatically create a new git remote in your current project. To deploy to targetapp you will need to establish the git remote yourself. Use heroku info to retrieve the Git URL of the new application and the set it manually.

Essentially, you need to add a git remote:

git remote add forked [email protected]:targetapp.git

Upvotes: 1

Austio
Austio

Reputation: 6095

I think this is what you are asking. You can append --app to a command in heroku and it will point it to the correct app you are trying to run commands on.

ie

--app betmart_us
--app betsmart_eu

Upvotes: 1

Related Questions