diff --git a/.gitignore b/.gitignore index 668d03e..fd6b384 100644 --- a/.gitignore +++ b/.gitignore @@ -24,11 +24,11 @@ dist/ downloads/ eggs/ .eggs/ -lib/ +#lib/ lib64/ parts/ sdist/ -var/ +#var/ wheels/ pip-wheel-metadata/ share/python-wheels/ diff --git a/build-deb/flaskapp/lib/systemd/system/flaskapp.service b/build-deb/flaskapp/lib/systemd/system/flaskapp.service new file mode 100644 index 0000000..b1dcd9e --- /dev/null +++ b/build-deb/flaskapp/lib/systemd/system/flaskapp.service @@ -0,0 +1,12 @@ +[Unit] +Description=Gunicorn flaskapp service +Documentation=man:gunicorn(1) +After=network.target nss-lookup.target + +[Service] +WorkingDirectory=/var/flaskapp/ +ExecStart=/usr/bin/gunicorn --workers 3 --bind 0.0.0.0:80 run:app + +[Install] +WantedBy=multi-user.target +