From 346c75613de31b1d93831251d93b1e8883529094 Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Thu, 20 Apr 2017 20:36:40 -0500 Subject: [PATCH] Bind to unix socket --- config/puma.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/puma.rb b/config/puma.rb index 7586536f..a6da0b55 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,7 +1,7 @@ threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i threads threads_count, threads_count -port ENV.fetch('PORT') { 3000 } +bind ENV.fetch('PORT') { '/home/mastodon/live/rails.sock' } environment ENV.fetch('RAILS_ENV') { 'development' } workers ENV.fetch('WEB_CONCURRENCY') { 2 }