如何从AppEngine下载特定服务的源代码? [英] How do I download a specific service's source code off of AppEngine?
问题描述
我有一些php源代码在应用程序引擎生产环境中工作,无法在其他任何地方使用。该代码的旧版本似乎根本不起作用,因此我需要获取该源代码,并了解它的做法有何不同。
本讨论概述了我遇到的挑战:
http://google-app-engine.75637.x6.nabble.com/Download-specific-Module-code-td699.html
我被告知尝试使用appcfg.py download_app:
appcfg.py download_app -A< APP_NAME> -V<版本> < DIR>
问题是这个命令不允许我指定模块/服务,所以我不能定位我的源代码。此外,我不是应用程序的所有者,所以我不能下载一切,但从我的理解,仍然无法正常工作,因为appcfg似乎只针对默认服务。
我链接的文章结尾提示使用gcloud下载应用程序,但我一直无法找到如何做到这一点。有人在这里知道如何解决这个问题吗?该服务运行在一个灵活的实例 - 不知道这是否有所作为...
从 appcfg.py download_app --help
:
用法:appcfg.py [options] download_app -A app_id [-V版本]
...
-M MODULE,--module = MODULE
设置模块,覆盖
app.yaml中的模块值。 ...
这个调用允许我下载非默认python模块的代码:
appcfg.py --module =< my_module> download_app -A< my_app> 。
当然,您需要满足认证和所有权要求等
并且您的应用程序不应该被配置为防止源代码下载(可变配置)
I have some php source code working in an app engine production environment that won't work anywhere else. Old versions of that code don't seem to work at all either so I need to get that source and see what the heck it is doing differently.
This discussion outlines the challenges I'm having: http://google-app-engine.75637.x6.nabble.com/Download-specific-Module-code-td699.html
I was told to try using appcfg.py download_app:
appcfg.py download_app -A <APP_NAME> -V <Version> <DIR>
The problem is that this command does not allow me to specify module / service so I can't target my source code. Also I'm not the App owner so I can't download everything but from what I understand that still wouldn't work because appcfg only seems to target the default service.
The article I linked ends with a suggestion to use gcloud to download the app but I haven't been able to find how to do that. Does anyone here know how to resolve this? The service is running in a Flexible instance - not sure if that makes a difference...
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)
这篇关于如何从AppEngine下载特定服务的源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!