Deploying to Heroku using git on bitbucket

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

    Chiming in with Stefan - this works perfectly. Here's what I did:

    1. Got really frustrated with the way my WP blog was resetting daily, presenting anyone who navigated to http://blog.example.com with a setup screen, because there was no wp-config.php.
    2. Logged into bitbucket.org.
    3. Linked my bitbucket & github accounts.
    4. Forked my "wp-blog" repo from github, which I had previously linked to my heroku remote.
    5. Cloned into this new fork ("git clone https://myname@bitbucket.org/myname/wp-blog_config.git") .
    6. Added a proper wp-config.php.
    7. Added my heroku remote from within this new fork ("git remote add heroku git@heroku.com:adjective-noun-1234.git")
    8. Committed & deployed to heroku ("git push heroku master:master")

提交回复
热议问题