File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ release /
2+ * .pyc
Original file line number Diff line number Diff line change 11eb-python-flask
22===============
3+ Simple Python and Flask sample application from [ AWS Elastic Beanstalk Developer Guide] ( http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_flask.html )
Original file line number Diff line number Diff line change 1+ import flask
2+
3+ application = flask .Flask (__name__ )
4+
5+ #Set application.debug=true to enable tracebacks on Beanstalk log output.
6+ #Make sure to remove this line before deploying to production.
7+ application .debug = True
8+
9+ @application .route ('/' )
10+ def hello_world ():
11+ return "Hello world!"
12+
13+ if __name__ == '__main__' :
14+ application .run (host = '0.0.0.0' , debug = True )
Original file line number Diff line number Diff line change 1+ Flask == 0.10.1
You can’t perform that action at this time.
0 commit comments