about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--config/puma.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/puma.rb b/config/puma.rb
index eb8fc6a8e..0397b8920 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -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 }