Set port in puma config

This commit is contained in:
swaggboi 2022-02-20 03:15:04 -05:00
parent 36297176e4
commit 7e80f8e439
3 changed files with 7 additions and 5 deletions

View File

@ -2,6 +2,7 @@ FROM ruby:3.1
# Move it # Move it
WORKDIR /opt WORKDIR /opt
COPY config/ ./config/
COPY public/ ./public/ COPY public/ ./public/
COPY views/ ./views/ COPY views/ ./views/
COPY Gemfile . COPY Gemfile .
@ -17,4 +18,4 @@ RUN bundle install
EXPOSE 4567 EXPOSE 4567
# Send it # Send it
CMD ["bundle", "exec", "puma", "-p", "4567", "-e", "production"] CMD ["bundle", "exec", "puma", "-e", "production"]

View File

@ -7,13 +7,13 @@ GEM
puma (5.6.2) puma (5.6.2)
nio4r (~> 2.0) nio4r (~> 2.0)
rack (2.2.3) rack (2.2.3)
rack-protection (2.1.0) rack-protection (2.2.0)
rack rack
ruby2_keywords (0.0.5) ruby2_keywords (0.0.5)
sinatra (2.1.0) sinatra (2.2.0)
mustermann (~> 1.0) mustermann (~> 1.0)
rack (~> 2.2) rack (~> 2.2)
rack-protection (= 2.1.0) rack-protection (= 2.2.0)
tilt (~> 2.0) tilt (~> 2.0)
tilt (2.0.10) tilt (2.0.10)

View File

@ -1 +1,2 @@
threads(1, `nproc`.chomp || 5) threads(0, `nproc`.chomp || 5)
port 4567