Skip to content
Snippets Groups Projects
Commit 0f852c6f authored by Akihiko Odaki's avatar Akihiko Odaki Committed by Eugen
Browse files

Do not set port for puma if it is bound to unix socket (#2289)

Setting port after binding a unix socket puma listen to both of an unix
socket and TCP/IP, which is not a desired behavior.
parent 974ac467
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,10 @@ threads threads_count, threads_count
if ENV['SOCKET'] then
bind 'unix://' + ENV['SOCKET']
else
port ENV.fetch('PORT') { 3000 }
end
port ENV.fetch('PORT') { 3000 }
environment ENV.fetch('RAILS_ENV') { 'development' }
workers ENV.fetch('WEB_CONCURRENCY') { 2 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment