mirror of
https://github.com/YunoHost-Apps/openproject_ynh.git
synced 2024-09-03 19:56:10 +02:00
18 lines
402 B
SYSTEMD
18 lines
402 B
SYSTEMD
|
[Unit]
|
||
|
Description=Launches Application server for OpenProject Rails project
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User=__APP__
|
||
|
Group=__APP__
|
||
|
WorkingDirectory=__FINALPATH__/
|
||
|
Environment=RAILS_ENV=production
|
||
|
|
||
|
ExecStart=/usr/local/bin/bundle exec puma -t 5:5 -p ${PORT:-__PORT__} -e ${RACK_ENV:-production} >> /var/log/__APP__/__APP__.log 2>&1
|
||
|
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|