2019-08-24 11:26:49 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Puma Server for Chexpire (%i)
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2022-02-13 19:22:56 +01:00
|
|
|
Type=simple
|
2019-08-24 11:26:49 +02:00
|
|
|
User=chexpire_%i
|
|
|
|
EnvironmentFile=/home/chexpire_%i/www/current/.rbenv-vars
|
|
|
|
Environment=RAILS_ENV=%i
|
|
|
|
WorkingDirectory=/home/chexpire_%i/www/current/
|
|
|
|
|
2022-02-13 19:22:56 +01:00
|
|
|
ExecStart=/home/chexpire_%i/.rbenv/bin/rbenv exec bundle exec puma -C /home/chexpire_%i/www/current/config/puma.rb
|
2019-08-24 11:26:49 +02:00
|
|
|
ExecStop=/home/chexpire_%i/.rbenv/bin/rbenv exec bundle exec pumactl -F /home/chexpire_%i/www/current/config/puma.rb stop
|
|
|
|
ExecReload=/home/chexpire_%i/.rbenv/bin/rbenv exec bundle exec pumactl -F /home/chexpire_%i/www/current/config/puma.rb phased-restart
|
|
|
|
|
|
|
|
Restart=no
|
|
|
|
RemainAfterExit=yes
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|