Skip to content

Commit

Permalink
Implement Hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
evandbrown committed Jul 12, 2013
1 parent 30dbc3f commit fb750d9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
release/
*.pyc
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
eb-python-flask
===============
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)
14 changes: 14 additions & 0 deletions application.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import flask

application = flask.Flask(__name__)

#Set application.debug=true to enable tracebacks on Beanstalk log output.
#Make sure to remove this line before deploying to production.
application.debug=True

@application.route('/')
def hello_world():
return "Hello world!"

if __name__ == '__main__':
application.run(host='0.0.0.0', debug=True)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Flask==0.10.1

0 comments on commit fb750d9

Please sign in to comment.