[systemd] Use just django by default
This commit is contained in:
@ -8,7 +8,7 @@ Type=simple
|
|||||||
Environment=PATH=%h/.local/bin:/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
|
Environment=PATH=%h/.local/bin:/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
|
||||||
EnvironmentFile=%h/.local/etc/django/%i.env
|
EnvironmentFile=%h/.local/etc/django/%i.env
|
||||||
ExecStartPre=/bin/bash -lc 'cd "$DJANGO_PATH" && if [ -f docker-compose.yml ]; then docker-compose up -d; fi'
|
ExecStartPre=/bin/bash -lc 'cd "$DJANGO_PATH" && if [ -f docker-compose.yml ]; then docker-compose up -d; fi'
|
||||||
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'
|
ExecStart=/bin/bash -c 'cd "$DJANGO_PATH" && exec direnv exec "$DJANGO_PATH" just django'
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
StandardOutput=append:/tmp/django.log
|
StandardOutput=append:/tmp/django.log
|
||||||
|
|||||||
Reference in New Issue
Block a user