Overwriting an existing Heroku app

前端 未结 1 749
执念已碎
执念已碎 2020-12-13 15:17

I have a Sinatra app, hosted on Heroku. Lately, I\'ve been developing that same app from a different folder. It\'s not a branch, it\'s just a parallel app / directory with i

相关标签:
1条回答
  • 2020-12-13 15:59

    Firstly this is certainly possible. The process is quite simple, firstly we need to add Heroku as a new remote repository to your new app.

    heroku git:remote -a project
    

    You would replace the 'project' with your Heroku app name. Secondly you would need to force a push to Heroku.

    git push -f heroku master
    

    Note: We are using an '-f' to force the push.

    0 讨论(0)
提交回复
热议问题