hostinger-django-demo/deploy/systemd.service
thecyberlearn 2f3f1ea867 Initial commit: Django demo project for VPS deployment
🎉 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 21:50:08 +05:30

22 lines
587 B
Desktop File

[Unit]
Description=Django Demo Project Gunicorn daemon
After=network.target
[Service]
Type=notify
User=www-data
Group=www-data
RuntimeDirectory=gunicorn
WorkingDirectory=/home/ubuntu/django-demo
ExecStart=/home/ubuntu/django-demo/venv/bin/gunicorn --config /home/ubuntu/django-demo/deploy/gunicorn.conf.py demo_project.wsgi:application
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
# Environment variables
Environment=DJANGO_SETTINGS_MODULE=demo_project.settings
EnvironmentFile=/home/ubuntu/django-demo/.env
[Install]
WantedBy=multi-user.target