Skip to content

Commit

Permalink
Use different Puma thread format to work around old Puma bug: puma/pu…
Browse files Browse the repository at this point in the history
  • Loading branch information
noahgibbs committed Apr 18, 2017
1 parent 8814c7c commit 5cdc78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def server_start
STDERR.print "In PID #{Process.pid}, starting server on port #{PORT_NUM}\n"
Dir.chdir "work/discourse"
# Start Puma in a new process group to easily kill subprocesses if necessary
exec({ "RAILS_ENV" => "profile" }, "puma", "-p", PORT_NUM.to_s, "-w", PUMA_PROCESSES.to_s, "-t", PUMA_THREADS.to_s, :pgroup => true)
exec({ "RAILS_ENV" => "profile" }, "puma", "-p", PORT_NUM.to_s, "-w", PUMA_PROCESSES.to_s, "-t", "0:#{PUMA_THREADS}", :pgroup => true)
end
end

Expand Down

0 comments on commit 5cdc78a

Please sign in to comment.