mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Félix Piédallu
ce58c792c7
* Use example_ynh as a template * Implement change_url * Use the new yunohost permissions system * Use a python3 venv * Use a systemd service + gunicorn * Allow multiple instances (stop installing in /opt/yunohost/ihatemoney)
15 lines
382 B
Desktop File
15 lines
382 B
Desktop File
[Unit]
|
|
Description=I hate money
|
|
Requires=network.target mysql.service
|
|
After=network.target mysql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=__APP__
|
|
Environment=IHATEMONEY_SETTINGS_FILE_PATH=__FINALPATH__/ihatemoney.cfg
|
|
ExecStart=__FINALPATH__/venv/bin/gunicorn -c __FINALPATH__/gunicorn.conf.py ihatemoney.wsgi:application
|
|
Restart=always
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|