Deploying to Heroku using git on bitbucket

后端 未结 6 811
北海茫月
北海茫月 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:41

    I found this Page helpful

    Install Heroku Toolbelt

    If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.

    $ heroku login
    

    Create a new Git repository

    Initialize a git repository in a new or existing directory

    $ cd my-project/
    $ git init
    $ heroku git:remote -a PROJECTNAME
    

    Deploy your application

    Commit your code to the repository and deploy it to Heroku using Git.

    $ git add .
    $ git commit -am "make it better"
    $ git push heroku master
    

    Existing Git repository

    For existing repositories, simply add the heroku remote

    $ heroku git:remote -a PROJECTNAME
    

提交回复
热议问题