cloned project from github. heroku does not work

后端 未结 4 1175
攒了一身酷
攒了一身酷 2021-01-30 01:53

I cloned a project from github over to my desktop. I used to work on it form my laptop.

However, on laptop heroku does not seem to work for this app eventhough i have i

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 02:10

    First do:

    git remote add heroku git@heroku.com:{my-project-name}.git
    

    Where you replace {my-project-name} with the name of the Heroku application as it appears in your Heroku account. For example, if your Heroku account says you have an application named flowing-water-397, then the line would be:

    git remote add heroku git@heroku.com:flowing-water-397.git
    

    Then Git and the Heroku gem will know that this Git repo is connected to a Heroku.com application. Then you can do things such as:

    git push heroku master
    heroku open
    

    Finally, learn a little bit more about Git Remotes.

提交回复
热议问题