mirror of
https://github.com/YunoHost-Apps/redmine_ynh.git
synced 2024-09-03 20:16:16 +02:00
20 lines
476 B
Desktop File
20 lines
476 B
Desktop File
[Unit]
|
|
Description=Redmine
|
|
Requires=network.target
|
|
Requires=postgresql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=__APP__
|
|
Group=__APP__
|
|
WorkingDirectory=__FINALPATH__/
|
|
Environment="__YNH_RUBY_LOAD_PATH__"
|
|
Environment=RAILS_SERVE_STATIC_FILES=true
|
|
ExecStart=/opt/rbenv/versions/__APP__/bin/ruby bin/rails server -e production -b 127.0.0.1 -p __PORT__
|
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
|
TimeoutSec=30
|
|
RestartSec=15s
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|