File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env puma
2
2
3
+ shared_path = "/home/rails/rails-contributors/shared"
4
+
3
5
directory '/home/rails/rails-contributors/current'
4
6
rackup "/home/rails/rails-contributors/current/config.ru"
5
7
environment 'production'
6
8
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
10
12
11
13
workers 2
12
14
threads 3 , 3
13
15
16
+ bind "unix://#{ shared_path } /tmp/sockets/puma.sock"
17
+
14
18
restart_command 'bundle exec puma'
15
19
16
20
prune_bundler
You can’t perform that action at this time.
0 commit comments