From 8641c9b3721ca7bf3036afb9171d5270985dc688 Mon Sep 17 00:00:00 2001 From: fram3d Date: Wed, 17 Jan 2024 15:11:01 +0100 Subject: [PATCH] fix gitignore and default BIND address in service file --- .gitignore | 4 ++-- .../flaskapp/lib/systemd/system/flaskapp.service | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 build-deb/flaskapp/lib/systemd/system/flaskapp.service 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 +