15 lines
334 B
SYSTEMD
15 lines
334 B
SYSTEMD
|
[Unit]
|
||
|
Description=oshipka {{ project_name }} gunicorn service
|
||
|
Requires=network.target
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User={{ user }}
|
||
|
Type=simple
|
||
|
WorkingDirectory={{ pwd }}
|
||
|
ExecStart=/bin/bash -c 'export OSHIPKA_PATH={{ oshipka_path }}; $OSHIPKA_PATH/oshipka.sh prod {{ port }}'
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|