问题描述
我有一些php源代码在应用程序引擎生产环境中工作,无法在其他任何地方使用。该代码的旧版本似乎根本不起作用,因此我需要获取该源代码,并了解它的做法有何不同。
本讨论概述了我遇到的挑战:
我被告知尝试使用appcfg.py download_app:
从 appcfg.py download_app --help :
这个调用允许我下载非默认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:
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下载特定服务的源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!