diff --git a/.ebextensions/python.config b/.ebextensions/python.config new file mode 100644 index 0000000..b09e7eb --- /dev/null +++ b/.ebextensions/python.config @@ -0,0 +1,4 @@ +option_settings: + - namespace: aws:elasticbeanstalk:container:python:staticfiles + option_name: /static/ + value: static/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index f426d66..85cb0b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ release/ -*.pyc \ No newline at end of file +*.pyc +.elasticbeanstalk/ diff --git a/application.py b/application.py index cbc6f99..376df4d 100644 --- a/application.py +++ b/application.py @@ -8,7 +8,8 @@ @application.route('/') def hello_world(): - return "Hello world!" + message = "Hello, world!" + return flask.render_template('index.html', title=message) if __name__ == '__main__': - application.run(host='0.0.0.0', debug=True) \ No newline at end of file + application.run(host='0.0.0.0', debug=True) diff --git a/requirements.txt b/requirements.txt index 56eeb0c..767a218 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,4 @@ -Flask==0.10.1 \ No newline at end of file +Flask==0.10.1 +Jinja2==2.7 +Werkzeug==0.9.1 +wsgiref==0.1.2 \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..a2f6e44 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,8 @@ +h1 { + font-family:arial, helvetica; +} + +body { + margin:50px 0px; padding:0px; + text-align:center; +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..14600c6 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,10 @@ + + +
+