From 73fae16858beb59093bc14f4181096ba151567b3 Mon Sep 17 00:00:00 2001 From: Evan Burkey Date: Sat, 25 Jan 2025 21:50:18 -0800 Subject: [PATCH] fix prod --- Dockerfile | 2 +- compose.yaml | 2 +- config/puma.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6226b8a..2dff212 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,5 +68,5 @@ USER 1000:1000 ENTRYPOINT ["/rails/bin/docker-entrypoint"] # Start server via Thruster by default, this can be overwritten at runtime -EXPOSE 80 +EXPOSE 3000 CMD ["./bin/thrust", "./bin/rails", "server"] diff --git a/compose.yaml b/compose.yaml index c2781fa..632bddf 100644 --- a/compose.yaml +++ b/compose.yaml @@ -4,4 +4,4 @@ services: environment: - RAILS_MASTER_KEY=fd60586db8062a37df97d839311c4c70 ports: - - "7128:80" \ No newline at end of file + - "7128:3000" diff --git a/config/puma.rb b/config/puma.rb index a248513..681f6d8 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -28,7 +28,7 @@ threads_count = ENV.fetch("RAILS_MAX_THREADS", 3) threads threads_count, threads_count # Specifies the `port` that Puma will listen on to receive requests; default is 3000. -port ENV.fetch("PORT", 3000) +port ENV.fetch("PORT", 7128) # Allow puma to be restarted by `bin/rails restart` command. plugin :tmp_restart