diff --git a/app.sh b/app.sh new file mode 100755 index 0000000..5e62949 --- /dev/null +++ b/app.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +BASE=$(dirname $0) +cd $BASE +source env/bin/activate +pip3 install -r requirements.txt +gunicorn -D --bind 0.0.0.0:80 --pid /var/run/webapp.pid wsgi:app diff --git a/wsgi.py b/wsgi.py new file mode 100644 index 0000000..6026b0f --- /dev/null +++ b/wsgi.py @@ -0,0 +1,4 @@ +from app import app + +if __name__ == "__main__": + app.run()