Skip to content
Permalink
Browse files

Adding gunicorn

  • Loading branch information
fredericojordan committed Aug 5, 2019
1 parent a7f7913 commit 7fb0466601ce516b8f4a50a617468c860a312dd3
Showing with 7 additions and 2 deletions.
  1. +1 −1 Procfile
  2. +5 −1 progress.py
  3. +1 −0 requirements.txt
@@ -1 +1 @@
web: python progress.py
web: gunicorn progress:app
@@ -1,6 +1,9 @@
import os

from flask import Flask, render_template

app = Flask(__name__)
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', 'secret_l801#+#a&^1mz)_p&qyq51j51@20_74c-xi%&i)b*u_dt^2=2key')


@app.route("/<int:progress>/")
@@ -15,4 +18,5 @@ def getProgressSVG(progress):


if __name__ == "__main__":
app.run(host="0.0.0.0", port=80)
port = int(os.environ.get("PORT", 5000))
app.run(host="0.0.0.0", port=port)
@@ -1 +1,2 @@
Flask==1.1.1
gunicorn==19.9.0

0 comments on commit 7fb0466

Please sign in to comment.
You can’t perform that action at this time.