Is it possible to retrieve your source code from heroku?

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

First download and install heroku CLI.

Then run this command:

heroku login

Login by using your username and password.

Then git clone by using:

heroku git:clone -a APP-NAME

**** OR ****

1) Login to heroku : https://id.heroku.com/

2) select your app.

3) Select Deploy option.

Here you will get all the details with commands for getting the source code.


You are correct, you can do a "git clone", there are Heroku specific directions for local editing as well.


Just run the following, and you'll be good to go:

git clone [email protected]:your_app_name.git

Tags:

Git

Heroku