From b640b06ed9811ba52f4fc378e4fa7ead237defc5 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 28 Oct 2021 19:39:17 +0100 Subject: [PATCH] fix systemd service --- app/static/html/404.html | 1 + app/static/html/50x.html | 1 + etc/systemd/system/phantasma.service | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 app/static/html/404.html create mode 100644 app/static/html/50x.html diff --git a/app/static/html/404.html b/app/static/html/404.html new file mode 100644 index 0000000..7b69a4c --- /dev/null +++ b/app/static/html/404.html @@ -0,0 +1 @@ +not found diff --git a/app/static/html/50x.html b/app/static/html/50x.html new file mode 100644 index 0000000..74bb638 --- /dev/null +++ b/app/static/html/50x.html @@ -0,0 +1 @@ +failed diff --git a/etc/systemd/system/phantasma.service b/etc/systemd/system/phantasma.service index 48a6fdc..112e7b0 100644 --- a/etc/systemd/system/phantasma.service +++ b/etc/systemd/system/phantasma.service @@ -8,7 +8,7 @@ User=phantasma Group=phantasma WorkingDirectory=/srv/phantasma ExecReload=/bin/kill -HUP $MAINPID -ExecStart=/srv/phantasma/venv/bin/gunicorn app.wsgi:application -p 8080 +ExecStart=/srv/phantasma/venv/bin/gunicorn app.wsgi:application --reuse-port -b 127.0.0.1:8080 [Install] WantedBy=multi-user.target