Skip to content

Commit c3295b0

Browse files
committed
Bind to the shared path
1 parent 9414129 commit c3295b0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

config/puma/production.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
#!/usr/bin/env puma
22

3+
shared_path = "/home/rails/rails-contributors/shared"
4+
35
directory '/home/rails/rails-contributors/current'
46
rackup "/home/rails/rails-contributors/current/config.ru"
57
environment 'production'
68

7-
pidfile "/home/rails/rails-contributors/shared/tmp/pids/puma.pid"
8-
state_path "/home/rails/rails-contributors/shared/tmp/pids/puma.state"
9-
stdout_redirect '/home/rails/rails-contributors/shared/log/puma_access.log', '/home/rails/rails-contributors/shared/log/puma_error.log', true
9+
pidfile "#{shared_path}/tmp/pids/puma.pid"
10+
state_path "#{shared_path}/tmp/pids/puma.state"
11+
stdout_redirect "#{shared_path}/log/puma_access.log", "#{shared_path}/log/puma_error.log", true
1012

1113
workers 2
1214
threads 3,3
1315

16+
bind "unix://#{shared_path}/tmp/sockets/puma.sock"
17+
1418
restart_command 'bundle exec puma'
1519

1620
prune_bundler

0 commit comments

Comments
 (0)