Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 45796e2

Browse files
author
Mark Pundsack
committed
initial push
0 parents  commit 45796e2

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

.gitignore

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

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn app:app -b "0.0.0.0:$PORT" -w 3

app.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import os
2+
3+
from flask import Flask
4+
app = Flask(__name__)
5+
6+
@app.route('/')
7+
def hello():
8+
return 'Hello World!'
9+
10+
if __name__ == '__main__':
11+
# Bind to PORT if defined, otherwise default to 5000.
12+
port = int(os.environ.get('PORT', 5000))
13+
app.run(host='0.0.0.0', port=port)

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Flask==0.9
2+
Jinja2==2.6
3+
Werkzeug==0.8.3
4+
distribute==0.6.27
5+
gunicorn==0.14.6
6+
wsgiref==0.1.2

0 commit comments

Comments
 (0)