Skip to content

Commit 035cb6c

Browse files
committed
setup simple ping/pong app to deploy to heroku
1 parent 24cf9af commit 035cb6c

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.gitignore

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

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn app:app --log-file=-

app.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from flask import Flask
2+
3+
app = Flask(__name__)
4+
5+
@app.route('/ping/', methods=['GET', 'POST'])
6+
def faq():
7+
return "PONG"
8+
9+
if __name__ == '__main__':
10+
app.run(debug=True)

0 commit comments

Comments
 (0)