diff --git a/config/discourse.pill.sample b/config/discourse.pill.sample index 9b8165d73b4..2cbe3e957ea 100644 --- a/config/discourse.pill.sample +++ b/config/discourse.pill.sample @@ -30,7 +30,13 @@ Bluepill.application("your_app") do |app| app.working_dir = rails_root num_webs.times do |i| app.process("thin-#{i}") do |process| - process.start_command = "bundle exec thin start -e production -t 0 -p #{9040 + i} -P #{rails_root}/tmp/pids/thin#{i}.pid -d" + process.start_command = "bundle exec thin start -e production -t 0 --socket #{rails_root}/tmp/sockets/thin.#{i}.sock -P #{rails_root}/tmp/pids/thin#{i}.pid -d" + + # Alternatively, you can start with a port number instead of a socket. If you do that, then you MUST update + # the upstream section in the nginx config to match. + # The nginx.sample.conf file assumes you're using sockets. + # process.start_command = "bundle exec thin start -e production -t 0 -p #{9040 + i} -P #{rails_root}/tmp/pids/thin#{i}.pid -d" + process.pid_file = "#{rails_root}/tmp/pids/thin#{i}.pid" process.start_grace_time = 30.seconds process.stop_grace_time = 10.seconds