2015-07-12 48 views
0

我有一個簡單的Hello World應用程序,我可以在本地運行而不會出現任何問題。點擊瀏覽谷歌應用程序引擎在Windows上顯示的地址的應用:無法使用googe應用程序引擎將Python應用程序部署到雲端

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 

當我點擊部署後,谷歌問我在瀏覽器中的權利,我授予他們。但該應用程序在本地運行。爲什麼它不顯示在myappid.appscpot.com

+0

假設您確實已正確遵循該OAuth流程來標識自己爲部署您的應用程序的授權用戶,那麼您似乎錯寫了「myappid.appscpot.com」。它應該是「myappid.appspot.com」,中間沒有'c'字母 – asamarin

+1

部署不會自動停止本地服務器,如果它正在運行,它將繼續運行並在本地主機上提供應用程序。您需要專門嘗試在'appspot.com'上打開網站(順便說一下,請檢查您的網址,我發現您在問題中出現了兩次相同的錯字:「appspot」,而不是「appscpot」)。另外 - 您粘貼的部署日誌是否完整?至少在Linux上,它清楚地指出了所有上傳步驟,包括上傳的統計數據,清楚地表明上傳完成並檢查應用程序正在服務。 –

+0

如果我在瀏覽器中輸入http://myprojectid.appspot.com/,會出現以下錯誤:找不到。在此服務器上未找到請求的URL /。如果我輸入http://myprojectid.appspot.com:8080/ – user1283776

回答