瀏覽代碼

Default puma to running on localhost only. (#8429)

master
M Somerville 5 年之前
committed by Eugen Rochko
父節點
當前提交
2a59c6a5e7
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      config/puma.rb

+ 2
- 1
config/puma.rb 查看文件

@@ -4,7 +4,8 @@ threads threads_count, threads_count
if ENV['SOCKET'] then
bind 'unix://' + ENV['SOCKET']
else
port ENV.fetch('PORT') { 3000 }
port_num = ENV.fetch('PORT') { 3000 }
bind "tcp://127.0.0.1:#{port_num}"
end

environment ENV.fetch('RAILS_ENV') { 'development' }


Loading…
取消
儲存