mirror of
https://git.freebsd.org/ports.git
synced 2025-07-05 11:29:15 -04:00
41 lines
1.5 KiB
Text
41 lines
1.5 KiB
Text
--- config/puma.rb.example.orig 2023-06-21 08:07:20 UTC
|
|
+++ config/puma.rb.example
|
|
@@ -5,11 +5,11 @@
|
|
# The default is "config.ru".
|
|
#
|
|
rackup 'config.ru'
|
|
-pidfile '/home/git/gitlab/tmp/pids/puma.pid'
|
|
-state_path '/home/git/gitlab/tmp/pids/puma.state'
|
|
+pidfile '%%PREFIX%%/www/gitlab-ce/tmp/pids/puma.pid'
|
|
+state_path '%%PREFIX%%/www/gitlab-ce/tmp/pids/puma.state'
|
|
|
|
-stdout_redirect '/home/git/gitlab/log/puma.stdout.log',
|
|
- '/home/git/gitlab/log/puma.stderr.log',
|
|
+stdout_redirect '%%PREFIX%%/www/gitlab-ce/log/puma.stdout.log',
|
|
+ '%%PREFIX%%/www/gitlab-ce/log/puma.stderr.log',
|
|
true
|
|
|
|
# Configure "min" to be the minimum number of threads to use to answer
|
|
@@ -31,11 +31,11 @@ queue_requests false
|
|
|
|
# Bind the server to "url". "tcp://", "unix://" and "ssl://" are the only
|
|
# accepted protocols.
|
|
-bind 'unix:///home/git/gitlab/tmp/sockets/gitlab.socket'
|
|
+bind 'unix://%%PREFIX%%/www/gitlab-ce/tmp/sockets/gitlab.socket'
|
|
|
|
workers 3
|
|
|
|
-require_relative "/home/git/gitlab/lib/gitlab/cluster/lifecycle_events"
|
|
+require_relative "%%PREFIX%%/www/gitlab-ce/lib/gitlab/cluster/lifecycle_events"
|
|
|
|
on_restart do
|
|
# Signal application hooks that we're about to restart
|
|
@@ -74,7 +74,7 @@ worker_timeout 60
|
|
wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
|
|
|
|
# Use json formatter
|
|
-require_relative "/home/git/gitlab/lib/gitlab/puma_logging/json_formatter"
|
|
+require_relative "%%PREFIX%%/www/gitlab-ce/lib/gitlab/puma_logging/json_formatter"
|
|
|
|
json_formatter = Gitlab::PumaLogging::JSONFormatter.new
|
|
log_formatter do |str|
|