2018-04-02 16:36:02 +02:00
|
|
|
[Unit]
|
|
|
|
Description=__APP__ puma service
|
|
|
|
Wants=postgresql.service
|
|
|
|
Wants=redis-server.service
|
|
|
|
After=redis-server.service
|
|
|
|
After=postgresql.service
|
|
|
|
After=discourse-sidekiq.service
|
|
|
|
Requires=discourse-sidekiq.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
|
|
|
WorkingDirectory=__FINALPATH__
|
|
|
|
Environment=RAILS_ENV=production
|
2018-04-24 21:27:56 +02:00
|
|
|
ExecStart=__RBENVROOT__/shims/bundle exec puma --config config/puma.rb -e production
|
|
|
|
ExecStop=__RBENVROOT__/shims/bundle exec pumactl stop
|
2018-04-02 16:36:02 +02:00
|
|
|
RemainAfterExit=true
|
|
|
|
Restart=always
|
|
|
|
RestartSec=10
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|