Deploying to Heroku using git on bitbucket

后端 未结 6 806
北海茫月
北海茫月 2020-12-04 11:07

I want to host my source on bitbucket using git because I obviously get a free private repo and I want to host my app on heroku using the source code from bitbucket.

<
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 11:29

    Deploying to Heroku should work regardless of where you host your code as the Heroku CLI adds it's own git remote for the sake of deployments. In fact, you can even git pull from Heroku, so you could technically use Heroku as a private git repository instead (though not recommended). As for using the GitHub client to connect to bitbucket, simply change the repository remote to the URL provided by bitbucket in the settings tab of the client.

提交回复
热议问题