2020-01-18 10:28:47 +01:00
|
|
|
[Unit]
|
|
|
|
Description=__APP__ service
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
|
|
|
WorkingDirectory=__FINALPATH__/live
|
|
|
|
Environment=RAILS_ENV=production
|
|
|
|
Environment="PORT=__PORT_WEB__"
|
2020-12-20 00:27:44 +01:00
|
|
|
ExecStart=/opt/rbenv/versions/__RUBY_VERSION__/bin/bundle exec rails server
|
2020-01-18 10:28:47 +01:00
|
|
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
2020-12-20 00:27:44 +01:00
|
|
|
StandardOutput=/var/log/__APP__/__APP__.log
|
|
|
|
StandardError=/var/log/__APP__/__APP__.log
|
|
|
|
SyslogIdentifier=__APP__
|
2020-01-18 10:28:47 +01:00
|
|
|
Restart=always
|
|
|
|
RestartSec=15
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|