aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2022-06-01 23:10:37 +0200
committerGitHub <noreply@github.com>2022-06-01 23:10:37 +0200
commit319abe79a2404038992752d833a11ce0ac6216bb (patch)
treed733c07e0cee76345c973e0c5f8d0e214b18ec6e /conf
parent2d015fba2026b084cf21c94b4f5f611722a2ddd7 (diff)
parentad7007b3464dd9c00da8bf2d6bd566d08dd96db6 (diff)
downloadmastodon_ynh-319abe79a2404038992752d833a11ce0ac6216bb.tar.gz
mastodon_ynh-319abe79a2404038992752d833a11ce0ac6216bb.tar.bz2
mastodon_ynh-319abe79a2404038992752d833a11ce0ac6216bb.zip
Merge pull request #329 from YunoHost-Apps/example
Apply last example_ynh
Diffstat (limited to 'conf')
-rw-r--r--conf/mastodon-sidekiq.service3
-rw-r--r--conf/mastodon-web.service3
2 files changed, 4 insertions, 2 deletions
diff --git a/conf/mastodon-sidekiq.service b/conf/mastodon-sidekiq.service
index 24554c1..40591c0 100644
--- a/conf/mastodon-sidekiq.service
+++ b/conf/mastodon-sidekiq.service
@@ -10,7 +10,8 @@ Environment="__LD_PRELOAD__"
Environment="RAILS_ENV=production"
Environment="DB_POOL=25"
Environment="MALLOC_ARENA_MAX=2"
-ExecStart=__RBENV_ROOT__/versions/__APP__/bin/bundle exec sidekiq -c 25
+Environment="__YNH_RUBY_LOAD_PATH__"
+ExecStart=__FINALPATH__/live/bin/bundle exec sidekiq -c 25
TimeoutSec=15
Restart=always
StandardError=syslog
diff --git a/conf/mastodon-web.service b/conf/mastodon-web.service
index edf41f7..5d22974 100644
--- a/conf/mastodon-web.service
+++ b/conf/mastodon-web.service
@@ -9,7 +9,8 @@ WorkingDirectory=__FINALPATH__/live
Environment="__LD_PRELOAD__"
Environment="RAILS_ENV=production"
Environment="PORT=__PORT_WEB__"
-ExecStart=__RBENV_ROOT__/versions/__APP__/bin/bundle exec puma -C config/puma.rb
+Environment="__YNH_RUBY_LOAD_PATH__"
+ExecStart=__FINALPATH__/live/bin/bundle exec puma -C config/puma.rb
ExecReload=/bin/kill -SIGUSR1 $MAINPID
TimeoutSec=15
Restart=always