Commit d1e96936 authored by erdnaxe's avatar erdnaxe 🎇 Committed by club-med

Fix systemd service unit

parent df1a1cb5
Pipeline #4107 failed with stage
in 4 minutes and 20 seconds
......@@ -7,14 +7,16 @@ Description=Mediatek Django project
After=syslog.target
[Service]
User=club-med
WorkingDirectory=/home/c/club-med/django-med
Environment="PATH=/home/c/club-med/django-med/venv/bin"
ExecStart=/home/c/club-med/django-med/entrypoint.sh
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
StandardOutput=append:/home/c/club-med/django-med/service.log
StandardError=append:/home/c/club-med/django-med/service_error.log
[Install]
WantedBy=multi-user.target
......@@ -18,9 +18,4 @@ python manage.py collectstatic --no-input
uwsgi --socket "$(pwd)/uwsgi.sock" --chmod-socket=600 --master --plugins python3 \
--module med.wsgi:application --env DJANGO_SETTINGS_MODULE=med.settings \
--processes 4 --harakiri=20 --max-requests=5000 --vacuum \
--static-map /static="$(pwd)/static"
#uwsgi --chdir="$(pwd)" \
# --pidfile="$(pwd)/uwsgi.pid" \
# --daemonize="$(pwd)/uwsgi.log" \
# --protocol=fastcgi
--static-map /static="$(pwd)/static" --protocol=fastcgi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment