diff --git a/conf/fab-manager-app.service b/conf/fab-manager-app.service index 0df694a..d65defb 100644 --- a/conf/fab-manager-app.service +++ b/conf/fab-manager-app.service @@ -8,7 +8,9 @@ User=__APP__ WorkingDirectory=__INSTALL_DIR__ Environment="__LD_PRELOAD__" Environment="__YNH_RUBY_LOAD_PATH__" +EnvironmentFile=__INSTALL_DIR__/.env Environment="RAILS_ENV=production" + ExecStartPre=-rm -f __INSTALL_DIR__/tmp/pids/server.pid ExecStart=__INSTALL_DIR__/bin/bundle exec rails s puma -p __PORT__ -b 127.0.0.1 ExecReload=/bin/kill -SIGUSR1 $MAINPID diff --git a/conf/fab-manager-worker.service b/conf/fab-manager-worker.service index 8254fc8..5760b90 100644 --- a/conf/fab-manager-worker.service +++ b/conf/fab-manager-worker.service @@ -8,7 +8,9 @@ User=__APP__ WorkingDirectory=__INSTALL_DIR__ Environment="__LD_PRELOAD__" Environment="__YNH_RUBY_LOAD_PATH__" +EnvironmentFile=__INSTALL_DIR__/.env Environment="RAILS_ENV=production" + ExecStart=__INSTALL_DIR__/bin/bundle exec sidekiq -C __INSTALL_DIR__/config/sidekiq.yml TimeoutSec=15 Restart=always