Skip to content

Commit cd73b4b

Browse files
committed
More consistent use of the configured local port
Recent update in template-application-flask[1] along similar lines. If someone wants to simultaneously run regular and "mock production" instances, they can update the ports to what they want. By default having everything use the same port locally seems sensible. [1] navapbc/template-application-flask@ad74568
1 parent 71280cf commit cd73b4b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

template/{{app_name}}/README.md.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Once you've completed the setup steps above, you can run the site natively or wi
8989
To run within a container:
9090

9191
1. `make start-container`
92-
1. Then visit http://localhost:3100
92+
1. Then visit http://localhost:{{ app_local_port }}
9393

9494
To run natively:
9595

template/{{app_name}}/docker-compose.mock-production.yml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ services:
3434
- DISABLE_DATABASE_ENVIRONMENT_CHECK=1
3535
- AWS_DEFAULT_REGION=us-east-1
3636
ports:
37-
- 3200:{{ app_local_port }}
37+
- {{ app_local_port }}:{{ app_local_port }}

template/{{app_name}}/docker-compose.yml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
- RAILS_BINDING=0.0.0.0
3030
- RAILS_ENV=development
3131
ports:
32-
- 3100:{{ app_local_port }}
32+
- {{ app_local_port }}:{{ app_local_port }}
3333
volumes:
3434
- .:/rails
3535
# Use named volumes for directories that the container should use the guest

0 commit comments

Comments
 (0)