Download source code of Node.js project deployed on Google Cloud AppEngine

227 views
Skip to first unread message

Aqib Hameed

unread,
Sep 11, 2020, 4:55:20 PM9/11/20
to Google App Engine
Hi,

Please can anyone guide how we can download the source code of the AppEngine on nodejs platform.Or how we can the source files of the project.

Thanks,

Regards,
Aqib Hameed

wesley c

unread,
Sep 11, 2020, 7:51:04 PM9/11/20
to google-a...@googlegroups.com
Only the original App Engine runtimes (Python 2, PHP 5, Java 8) allowed downloading your source code (via the appcfg tool). Unfortunately that tool has been deprecated, and its replacement, the gcloud tool does NOT provide for downloading in the current generation of runtimes. The best you can do now is to view your source code from the Cloud Console by going to your project's Services page, selecting the "Tools" pulldown under "Diagnose" and clicking "Source" to view your code. It should look like this:

Screen Shot 2020-09-11 at 4.46.16 PM.png

In any case, we strongly recommend using a source code revision system moving forward so as to avoid situations like this.

Hope this helps,
--Wesley

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d04748e3-d5af-4fcf-a317-43b5d24d6632n%40googlegroups.com.


--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A computer never does what you want... only what you tell it."
    wesley chun :: @wescpy :: Software Architect & Engineer
    Developer Advocate at Google Cloud by day; at night...
    Python training & consulting : http://CyberwebConsulting.com
    "Core Python" books : http://CorePython.com
    Python blog: http://wescpy.blogspot.com

Aqib Hameed

unread,
Sep 12, 2020, 5:21:58 PM9/12/20
to google-a...@googlegroups.com
Dear Wesley,

Thanks for your response, but i am not able to see the option of Source. I am only able to see two option Logs and Debug.As you can also see in the attachment.
Do you know why I am not able to see the Source option ??

Thanks,

Regards,
Aqib Hameed

service.png

Shawn Wu

unread,
Sep 14, 2020, 10:49:41 AM9/14/20
to Google App Engine

please double confirm the IAM role of your account. it may caused by the account lack of IAM role.

Aqib Hameed

unread,
Sep 14, 2020, 12:17:59 PM9/14/20
to google-a...@googlegroups.com
I have checked the role, it is Editor. I think by default, the default service account role is Editor. Do I need to change the role of the default service account ??  to see the option of Source right ??

Thanks & Regards
Aqib Hameed

verges

unread,
Sep 15, 2020, 6:46:14 AM9/15/20
to Google App Engine
Hello,

If your account has Editor role you should be able to see the source button in both the Services and Version tab. Alternatively you may go to the Debugger page of Cloud Console to the same effect. Please note that the code for App Engine Flexible runtimes will not appear unless  deployed with the command "gcloud beta app deploy" with gcloud version 195.0.0 or newer. You may also refer to this page from Cloud Debugger documentation [1].

Reply all
Reply to author
Forward
0 new messages