diff options
| author | yalh76 <yalh@yahoo.com> | 2020-05-19 01:20:45 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2020-05-19 01:20:45 +0200 |
| commit | 736d7908b4f31095e7a7b92fc632b0f6fad05e83 (patch) | |
| tree | 45d83101fca09da035e1ea32a6fb95e85254ebcf /conf | |
| parent | 36ff48ac1d930f235217d5758f6bd33bac039cc5 (diff) | |
| download | mastodon_ynh-736d7908b4f31095e7a7b92fc632b0f6fad05e83.tar.gz mastodon_ynh-736d7908b4f31095e7a7b92fc632b0f6fad05e83.tar.bz2 mastodon_ynh-736d7908b4f31095e7a7b92fc632b0f6fad05e83.zip | |
RUBY_VERSION factorisation
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/cron | 2 | ||||
| -rw-r--r-- | conf/mastodon-sidekiq.service | 2 | ||||
| -rw-r--r-- | conf/mastodon-web.service | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -1,2 +1,2 @@ RAILS_ENV=production -@daily cd __FINAL__PATH__/live && /opt/rbenv/versions/2.6.5/bin/bundle exec rake __USER__:media:remove_remote +@daily cd __FINAL__PATH__/live && __RBENVROOT__/shims/bundle exec rake __USER__:media:remove_remote diff --git a/conf/mastodon-sidekiq.service b/conf/mastodon-sidekiq.service index d5fc7e1..73f29e5 100644 --- a/conf/mastodon-sidekiq.service +++ b/conf/mastodon-sidekiq.service @@ -9,7 +9,7 @@ Environment="RAILS_ENV=production" Environment="DB_POOL=25" Environment="MALLOC_ARENA_MAX=2" - ExecStart=/opt/rbenv/versions/2.6.5/bin/bundle exec sidekiq -c 25 + ExecStart=__RBENVROOT__/shims/bundle exec sidekiq -c 25 TimeoutSec=15 Restart=always StandardError=syslog diff --git a/conf/mastodon-web.service b/conf/mastodon-web.service index bb65afe..14d1260 100644 --- a/conf/mastodon-web.service +++ b/conf/mastodon-web.service @@ -8,7 +8,7 @@ WorkingDirectory=__FINALPATH__/live Environment="RAILS_ENV=production" Environment="PORT=__PORT_WEB__" - ExecStart=/opt/rbenv/versions/2.6.5/bin/bundle exec puma -C config/puma.rb + ExecStart=__RBENVROOT__/shims/bundle exec puma -C config/puma.rb ExecReload=/bin/kill -SIGUSR1 $MAINPID TimeoutSec=15 Restart=always |
