[systemd] Try to get django@ working

This commit is contained in:
2026-03-13 18:12:54 -04:00
parent 8c1fea6180
commit f5df889476

View File

@ -7,7 +7,7 @@ Wants=network-online.target
Type=simple
Environment=PATH=%h/.local/bin:/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
EnvironmentFile=%h/.local/etc/django/%i.env
ExecStart=/bin/bash -c 'cd "$DJANGO_PATH" && exec direnv exec "$DJANGO_PATH" python manage.py runserver 0.0.0.0:${DJANGO_PORT:-8000}'
ExecStart=/bin/bash -c 'cd "$DJANGO_PATH" && if [ -f "$DJANGO_PATH/pyproject.toml" ]; then exec poetry run python manage.py runserver 0.0.0.0:${DJANGO_PORT:-8000}; else exec direnv exec "$DJANGO_PATH" python manage.py runserver 0.0.0.0:${DJANGO_PORT:-8000}; fi'
Restart=on-failure
RestartSec=2
StandardOutput=append:/tmp/django.log