Is it possible to retrieve your source code from heroku?

后端 未结 6 1103
执笔经年
执笔经年 2021-01-31 02:37

Once you have uploaded your source code to Heroku, is it possible to download it from there if necessary such as in the case of a failure of your local disk?

Because of

6条回答
  •  被撕碎了的回忆
    2021-01-31 03:00

    Just go to https://dashboard.heroku.com/apps/YOUR_APP_NAME/deploy/heroku-git.

    Install the Heroku Toolbelt

    Download and install the 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
    

    Clone the repository

    Use Git to clone YOUR_APP_NAME's source code to your local machine.

    $ heroku git:clone -a YOUR_APP_NAME
    $ cd YOUR_APP_NAME
    

    Deploy your changes

    Make some changes to the code you just cloned and deploy them to Heroku using Git.

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

提交回复
热议问题