Skip to content

Instantly share code, notes, and snippets.

@wchargin
Last active July 16, 2016 23:23
Show Gist options
  • Save wchargin/f9173729bb503a09c6fb9133ba5c57d0 to your computer and use it in GitHub Desktop.
Save wchargin/f9173729bb503a09c6fb9133ba5c57d0 to your computer and use it in GitHub Desktop.
a minimal gae app
version: 1
runtime: python27
api_version: 1
threadsafe: true
application: <YOUR_APP_ID_HERE>
handlers:
- url: /.*
script: main.application
manual_scaling:
instances: 1
import logging
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
logging.info("Hello!")
self.response.headers['Content-Type'] = 'text/html'
self.response.write('<h1>Done</h1>')
routes = [
('/', MainPage),
]
application = webapp2.WSGIApplication(routes, debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment