How to download source code of the current deployment

I accidentally removed latest changes from the local repository and lost all of the changes I deployed recently, how can I restore it?

1 Like

How did you remove your changes? You could try fly ssh console and grab the code, but it probably won’t be the actual source code if you compiled/built it.

didn’t commit and run git reset hard

it worked, but some manual copy-paste was needed ofc. Ultimately would be good to have a feature to download the whole image to local machine

That feature already exists, flyctl image show to get the image info.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.