mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 15:51:51 -04:00
net-im/mastodon: Remove Gemfile.lock in the rc scripts before starting web
and worker services. There does not seem to be a simple way to prevent a removed Gemfile.lock from being re-generated when the web or worker services are started. This can cause startup errors when users upgrade dependencies and they no longer match what is in Gemfile.lock.
This commit is contained in:
parent
9664247ff8
commit
dd9eea00af
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=450756
3 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
PORTNAME= mastodon
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.6.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-im www
|
||||
|
||||
MAINTAINER= jrm@FreeBSD.org
|
||||
|
|
|
@ -33,6 +33,7 @@ mastodon_web_user="mastodon"
|
|||
pidfile="%%WWWDIR%%/tmp/${name}.pid"
|
||||
procname="%%RUBY%%:"
|
||||
|
||||
start_precmd="rm -f %%WWWDIR%%/Gemfile.lock"
|
||||
command="%%PREFIX%%/bin/puma"
|
||||
command_flags="-C config/puma.rb"
|
||||
command_args=">> /var/log/mastodon/${name##mastodon_}.log 2>&1 &"
|
||||
|
|
|
@ -30,6 +30,7 @@ mastodon_workers_user="mastodon"
|
|||
pidfile="%%WWWDIR%%/tmp/${name}.pid"
|
||||
procname="%%RUBY%%:"
|
||||
|
||||
start_precmd="rm -f %%WWWDIR%%/Gemfile.lock"
|
||||
command="%%PREFIX%%/bin/sidekiq"
|
||||
command_flags="-c ${mastodon_workers_threads} -q default -q mailers -q pull -q push"
|
||||
command_args=">> /var/log/mastodon/${name##mastodon_}.log 2>&1 &"
|
||||
|
|
Loading…
Add table
Reference in a new issue