How do I download a specific service's source code off of AppEngine?

旧时模样 提交于 2019-11-29 08:49:09

From appcfg.py download_app --help:

Usage: appcfg.py [options] download_app -A app_id [ -V version ]

...

-M MODULE, --module=MODULE Set the module, overriding the module value from app.yaml. ...

This invocation allowed me to download the code for the non-default python module of :

appcfg.py --module=<my_module> download_app -A <my_app> .

Of course, you need to meet authentication and ownership requirements, etc. And your app shouldn't have been configured for prevention of source code downloads (ireversible config)

Solution:

appcfg.py -A [YOUR_PROJECT_ID] --module=[YOUR_PROJECT_MODULE] download_app [SAVE_FOLDER]

Example:

appcfg.py -A foo-project --module=01-01.foo-project.appspot.com download_app foo-project-v0101

Simple enough to do:

  1. Switch to the directory where App Engine is installed on your computer. It is usually under the following path:

    C:\Program Files\Google\google_appengine

  2. Run the below command

    appcfg.py download_app –A MyAppName -V 1 c:\AppEngine\SourceCode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!