mirror of
https://github.com/YunoHost-Apps/fab-manager_ynh.git
synced 2024-09-03 18:36:16 +02:00
Fix services config : add environentfile
This commit is contained in:
parent
691425f5e8
commit
00095b5b9b
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue