summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2013-10-23 12:51:10 +0300
committerYuval Adam <yuv.adm@gmail.com>2013-10-23 12:51:10 +0300
commitf76c54873332a7a0754d7e5aa7349d65a496e356 (patch)
tree824ebbda6043aba4d0627a6ea4d33a9863b48674
parentd3123f633189eb2b6d196133f741e592d63a44c5 (diff)
Deploy with gunicorn
-rw-r--r--.gitignore1
-rw-r--r--Procfile2
-rw-r--r--app.py2
-rw-r--r--requirements.txt1
4 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0d20b64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.pyc
diff --git a/Procfile b/Procfile
index 2e35818..ca6e941 100644
--- a/Procfile
+++ b/Procfile
@@ -1 +1 @@
-web: python app.py
+web: gunicorn app:app
diff --git a/app.py b/app.py
index 600b380..c9c2965 100644
--- a/app.py
+++ b/app.py
@@ -12,4 +12,4 @@ class HelloWorld(restful.Resource):
api.add_resource(HelloWorld, '/')
if __name__ == '__main__':
- app.run(port=int(environ.get('PORT', 5000)))
+ app.run(debug=True)
diff --git a/requirements.txt b/requirements.txt
index 02b0915..7d944d5 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,5 +3,6 @@ Flask-RESTful==0.2.5
Jinja2==2.7.1
MarkupSafe==0.18
Werkzeug==0.9.4
+gunicorn==18.0
itsdangerous==0.23
wsgiref==0.1.2