Search code examples
gitgithubherokuheroku-cliheroku-api

How to clone a repository from Heroku


I have made a Python Application and uploaded it in github.

Then i made a heroku app ad connected to the github repository.' There is a data.json in my application repository that keeps some info. While application is running the application works fine and data also stores and retrive from there. But when i see in github the file is not changed. Means the data.json file is as it was in the begining. That means the changed file is somewhere in heroku. How can i download that file so that i can retrive my data


Solution

  • If you have pushed using the command

    git push heroku master
    

    You can clone what is pushed using:

    heroku git:clone -a APP-NAME
    

    This of course assumes you have heroku-cli installed.