I've an application which is deployed. I'd created simple get fetch services on cloud in a project and have deployed it. Unfortunately in confusion b/w the projects, I deleted the project. I can access the web service by fetching through urls but couldn't get the source code. Any help?
Asked
Active
Viewed 120 times
0
-
standard or flex environment? – Dan Cornilescu Dec 03 '18 at 10:23
-
I search a lot but couldn't find if its standard or flexible. Can you give me a hint? – Abrar A. Dec 03 '18 at 10:55
-
In the developer console on the [Versions](https://console.cloud.google.com/appengine/versions) page yo have a column with the environment – Dan Cornilescu Dec 03 '18 at 13:04
-
Thanks. Its standard environment. – Abrar A. Dec 03 '18 at 16:37
-
Check if you can see the code in StackDriver - I'm unsure if it works with the 2nd generation standard environment, see https://stackoverflow.com/a/47499884/4495081 – Dan Cornilescu Dec 03 '18 at 16:43
-
Thank you so much! It found the source code but is there any way I could restore the source files in the app engine again without manual restore, that might be the last resort. – Abrar A. Dec 04 '18 at 07:52
-
The only other thing to try I can think of, which worked for 1st gen standard env, is to use the original python GAE SDK, see https://cloud.google.com/appengine/docs/standard/python/tools/downloading-source-code. But chances are low, the node.js tab is not enabled in that doc. – Dan Cornilescu Dec 04 '18 at 10:22
-
Although, it didn't worked out. Since I'd 4-5 file, I manually created them and imported the code. Thank you so much. – Abrar A. Dec 04 '18 at 11:15
-
No problem.Side note: you may want to use this opportunity to get on the version control system use habit - recovery would have been trivial ;) – Dan Cornilescu Dec 04 '18 at 11:43
-
Yeh. I just connected bitbucket and pushed my code a minute ago. :) Thanks for all your help. – Abrar A. Dec 04 '18 at 14:14
1 Answers
3
At the moment it's only possible to download Java, Python, PHP and Go application's source code.
What I can recommend you is to submit a Feature Request through this link asking for this feature also for Node.js. Also you may consider using Cloud Source Repositories, which is free and can help you mitigate this kind of issues in the future.

dhauptman
- 974
- 7
- 14