M Fuad
M Fuad

Reputation: 73

Download Nodejs project from AppEngine

I have recently lost access to my hard drive ( it died) and the only source code of my application ( Node JS) is at the Google Cloud Platform. Is there a way that i can download my node js project from the GCP? i google it up, and notice the download function only available at Python

Upvotes: 0

Views: 278

Answers (2)

M Fuad
M Fuad

Reputation: 73

Found an answer. This guy already solve it. Many thanks on the comments :)

gcloud: how to download the app via cli

Upvotes: 2

OneCricketeer
OneCricketeer

Reputation: 191973

So, hard lesson learned - Use Cloud Source Repos, and hook up functions such that a commit there will (re)deploy your AppEngine service(s). Basically, preventing you from needing to download any dpeloyment tools locally, and removing the possibility of losing code (unless GCP is unavailable).


I think I've done it in the past with Python apps, but at the moment, I found this if you have a Flexible instance of AppEngine

gcloud app instances scp lets you remotely copy files to or from an App Engine Flexible instance`

https://cloud.google.com/sdk/gcloud/reference/app/instances/scp

Basically, I don't think the UI will let you get your code, but gcloud app probably has more functionality.

And I am also not seeing anything specific for Node, but the best workaround I can think of would be to try to SSH to the machine, if you can, then SCP should work as well to pull files off it.

Upvotes: 0

Related Questions