Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
177 views
in Technique[技术] by (71.8m points)

How to find google app engine source code which were deployed two years ago

We have a google cloud AppEngine service that was written and deployed by a developer who is no longer with our company (we do still have his login credentials, however). The version is on a custom runtime and a flexible environment, and it was last deployed on April 16, 2018. Our problem is that this service is intermittently throwing 502/nginx errors and we cannot seem to locate the source code for it. When we go to the debug tab on that version, we see the attached screen. Attempting to redeploy following the instructions in the screenshot errors because there are no source files in our local directory.

Does anyone know if it is possible to find out where this code was deployed from? We have of course scoured our GitLab and cannot find the project there.

enter image description here

question from:https://stackoverflow.com/questions/65925281/how-to-find-google-app-engine-source-code-which-were-deployed-two-years-ago

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can try going to App Engine > Instances in your GCP console (https://console.cloud.google.com/appengine/instances). Select the correct service from the dropdown and then choose "SSH" on the instance itself.

enter image description here

A Cloud Shell will open. Do sudo docker exec -t -i gaeapp /bin/bash to open the app container (Access app files in ssh session into google app engine flexible?)

Now if you do ls you should see the files. However, at this point I don't know how to easily download all of them.

@Jans answer would be far more straight forward to access the files, but staging.[yourproject].appspot.com by default will delete files that are older than 14 days


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...