1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00
discourse_ynh/conf/discourse-puma.service

24 lines
571 B
SYSTEMD
Raw Normal View History

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__
2018-04-29 11:25:32 +02:00
Environment=__ADDITIONAL_ENV__
2018-04-02 16:36:02 +02:00
Environment=RAILS_ENV=production
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