15 lines
324 B
SYSTEMD
15 lines
324 B
SYSTEMD
|
[Unit]
|
||
|
Description=VoicePeak API Service
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User=your_user
|
||
|
Group=your_group
|
||
|
WorkingDirectory=/path/to/your/project
|
||
|
Environment="PATH=/path/to/your/project/venv/bin"
|
||
|
ExecStart=/path/to/your/project/venv/bin/python /path/to/your/project/app.py
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|