我在将php项目部署到谷歌应用引擎时出现以下错误
2015-09-04 06:26:27 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--oauth2_credential_file=C:\\Users\\chandra/.appcfg_oauth2_tokens', 'update', 'I:\\phpapp\\helloworld']"
06:26 AM Application: rgukt2k14; version: 1
06:26 AM Host: appengine.google.com
06:26 AM
Starting update of app: rgukt2k14, version: 1
06:26 AM Getting current resource limits.
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&response_type=code&client_id=550516889912.apps.googleusercontent.com&access_type=offline
If your browser is on a different machine then exit and re-run this
application with the command-line parameter
--noauth_local_webserver
输入用户ID和密码后,不会将其重定向到本地URL
答案 0 :(得分:1)
我遇到了同样的问题,我以这种方式解决了这个问题:
尝试使用控制台并导航到google appengine文件夹;然后写:
appcfg.py update c:\ pathToYourProject --noauth_local_webserver
这解决了我的噩梦,现在它直接从app引擎工作,幸运的是!
只是,我注意到你有一个PHP项目。尝试做同样的事情,但是调用appcfg.php(可能必须是正确的名称;不管是什么,只需运行appcfg更新,如上所述)