Skip to content

Commit

Permalink
restore port to 3000
Browse files Browse the repository at this point in the history
  • Loading branch information
jchuerva authored and Grant Slater committed Apr 29, 2019
1 parent 8cdb84c commit 4ad4078
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN bundle install

ADD . /app

EXPOSE 4000
EXPOSE 3000
CMD ["script/server"]
4 changes: 2 additions & 2 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
threads_count = ENV.fetch("SINATRA_MAX_THREADS") { 5 }.to_i
threads threads_count, threads_count

# Specifies the `port` that Puma will listen on to receive requests, default is 4000.
# Specifies the `port` that Puma will listen on to receive requests, default is 3000.
#
port ENV.fetch("PORT") { 4000 }
port ENV.fetch("PORT") { 3000 }

# Specifies the `environment` that Puma will run in.
#
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ services:
app:
build: .
ports:
- "4000:4000"
- "3000:3000"
links:
- db
environment:
- RAILS_ENV=production
- RAILS_SERVE_STATIC_FILES=true
- DATABASE_URL=postgresql://postgres@db/spectre
- DOMAIN_NAME=app
- PORT=:4000
- PORT=:3000
- PROTOCOL=http://
volumes:
- .:/app
command: bash -c "rm -f /app/tmp/pids/*.pid && rake assets:precompile && SECRET_KEY_BASE=`rake secret` rails server -p 4000"
command: bash -c "rm -f /app/tmp/pids/*.pid && rake assets:precompile && SECRET_KEY_BASE=`rake secret` rails server -p 3000"

db:
image: postgres:9.6
Expand Down

0 comments on commit 4ad4078

Please sign in to comment.