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
|
2020-12-24 12:11:42 +01:00
|
|
|
Environment="PORT=__PORT__"
|
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
|
2021-01-05 18:02:15 +01:00
|
|
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
|
|
|
StandardError=append:/var/log/__APP__/__APP__.log
|
2020-12-20 00:27:44 +01:00
|
|
|
SyslogIdentifier=__APP__
|
2020-01-18 10:28:47 +01:00
|
|
|
Restart=always
|
|
|
|
RestartSec=15
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|