From 56222dcbf588547f76d1ac8072c81d771ac55761 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Fri, 7 Jun 2019 09:18:26 +0200 Subject: [PATCH] Added systemd sample service --- deploy/systemd.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 deploy/systemd.service diff --git a/deploy/systemd.service b/deploy/systemd.service new file mode 100644 index 0000000..7b186f2 --- /dev/null +++ b/deploy/systemd.service @@ -0,0 +1,12 @@ +[Unit] +Description=Retribute API server +After=network.target + +[Service] +User=retribute +WorkingDirectory=/srv/retribute/api +EnvironmentFile=/srv/retribute/.env +ExecStart=/srv/retribute/venv/bin/daphne 127.0.0.1 -p 8091 config.asgi:application --proxy-headers + +[Install] +WantedBy=multi-user.target -- GitLab