无法使用googe app引擎将python应用程序部署到云端

时间:2015-07-12 16:53:21

标签: python google-app-engine

我有一个简单的hello world应用程序,我可以在本地运行,没有任何问题。点击Windows上的Google App Engine中的浏览,可在地址上显示该应用:

http://localhost:8080/

但是当我点击部署而不是在myappid.appscpot.com上展示时,该应用会显示在http://localhost:8080/?code=4/alotofrandomletters#

部署到谷歌日志显示:

2015-07-12 18:47:52 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--oauth2_credential_file=C:\\Users\\myname/.appcfg_oauth2_tokens', 'update', u'C:\\Users\\myname\\Dropbox\\myapp\\myapp']"
06:47 PM Application: myapp; version: 1
06:47 PM Host: appengine.google.com
06:47 PM 
Starting update of app: myapp, version: 1
06:47 PM Getting current resource limits.
Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?alotoflettersandnumbers.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

点击部署之后google要求我在浏览器中获取权限并授予他们权限。然而该应用程序在本地运行为什么它不显示在myappid.appscpot.com

1 个答案:

答案 0 :(得分:0)

Google App Engine SDK存在问题,如果本地服务器正在运行,则不允许完成用户身份验证过程。

https://stackoverflow.com/a/32111611/4853690

感谢Ashwani Agarwal !!