From 7e80f8e43991f302bd4ef7bfb9e8347ae9f49044 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 20 Feb 2022 03:15:04 -0500 Subject: [PATCH] Set port in puma config --- Dockerfile | 3 ++- Gemfile.lock | 6 +++--- config/puma.rb | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ed81fd..87e48fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM ruby:3.1 # Move it WORKDIR /opt +COPY config/ ./config/ COPY public/ ./public/ COPY views/ ./views/ COPY Gemfile . @@ -17,4 +18,4 @@ RUN bundle install EXPOSE 4567 # Send it -CMD ["bundle", "exec", "puma", "-p", "4567", "-e", "production"] +CMD ["bundle", "exec", "puma", "-e", "production"] diff --git a/Gemfile.lock b/Gemfile.lock index e4ce0a0..f9049ac 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,13 +7,13 @@ GEM puma (5.6.2) nio4r (~> 2.0) rack (2.2.3) - rack-protection (2.1.0) + rack-protection (2.2.0) rack ruby2_keywords (0.0.5) - sinatra (2.1.0) + sinatra (2.2.0) mustermann (~> 1.0) rack (~> 2.2) - rack-protection (= 2.1.0) + rack-protection (= 2.2.0) tilt (~> 2.0) tilt (2.0.10) diff --git a/config/puma.rb b/config/puma.rb index 9d18384..16821d1 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1 +1,2 @@ -threads(1, `nproc`.chomp || 5) +threads(0, `nproc`.chomp || 5) +port 4567