Skip to content

Commit fb750d9

Browse files
committed
Implement Hello world
1 parent 30dbc3f commit fb750d9

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
release/
2+
*.pyc

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
eb-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)

application.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Flask==0.10.1

0 commit comments

Comments
 (0)