fix gitignore and default BIND address in service file

This commit is contained in:
fram3d 2024-01-17 15:11:01 +01:00
parent 5be06f2f7d
commit 8641c9b372
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
2 changed files with 14 additions and 2 deletions

4
.gitignore vendored
View File

@ -24,11 +24,11 @@ dist/
downloads/ downloads/
eggs/ eggs/
.eggs/ .eggs/
lib/ #lib/
lib64/ lib64/
parts/ parts/
sdist/ sdist/
var/ #var/
wheels/ wheels/
pip-wheel-metadata/ pip-wheel-metadata/
share/python-wheels/ share/python-wheels/

View File

@ -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