我正在使用Google App Engine GUI。不确定我做错了什么,因为我在跟随谷歌在这一领域的领先地位。在GUI中,应用程序在管理端口8000上运行,并在端口8080上监听。当我转到localhost:8080时,Chrome中出现“服务器错误”。这是防火墙问题还是GAE问题?GAE教程 - 浏览'本地主机:8080'给我服务器错误?
helloudacity.py
import webapp2
class mainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.write('Hello, Udacity!')
application = webapp2.WSGIApplication([
('/', MainPage),
], debug=true)
的app.yaml
application: your-app-id
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloudacity.application