caaax
caaax

Reputation: 460

Retrieve files from Heroku server

Ok, so I have lost my files on my local mac.

I have been pushing these files by

git push heroku master

And the server is up and running fine.

How can I get all my files back from heroku onto my mac?

Please help, thanks!

Upvotes: 1

Views: 1148

Answers (1)

ceejayoz
ceejayoz

Reputation: 180023

https://help.heroku.com/FZDDCBLB/how-can-i-download-my-code-from-heroku

If you have deployed your application via our git push heroku master method, or via Heroku Pipelines, you can download the latest revision from our git servers with:

heroku git:clone -a APP-NAME

This will clone the git repository to your machine with the latest code. Please note, this will only include branches that you have pushed to Heroku, which in most cases will only be the master branch.

Upvotes: 3

Related Questions