Search code examples
gitgithubheroku

How do I retrieve the source code from my dead Heroku application?


I deployed a Heroku application from my previous laptop using git push heroku master and connected it to my own GitHub repository.

However, when Heroku stopped their free service, my previous laptop died(planning to recycle) while it had all of the source code of the Heroku application.

How can I possibly pull the source code from my dead Heroku application? I don't know if I can use git commands because I git-pushed it using my previous laptop.

I logged into heroku.com and tried to find the source code from my connected GitHub repository but couldn't find it.


Solution

  • When your app died, you can acess the app, right? He died, but if you acess heroku you will see the app disabled. If you can do this, access 'settings' section. There you will see the 'Heroku git URL'.

    So, you only clone with git clone your-heroku-git-url.