Last active
July 16, 2016 23:23
-
-
Save wchargin/f9173729bb503a09c6fb9133ba5c57d0 to your computer and use it in GitHub Desktop.
a minimal gae app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1 | |
runtime: python27 | |
api_version: 1 | |
threadsafe: true | |
application: <YOUR_APP_ID_HERE> | |
handlers: | |
- url: /.* | |
script: main.application | |
manual_scaling: | |
instances: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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