Skip to content

Commit

Permalink
♻️ refactor: Replace all mentions of 127.0.0.1 by localhost.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 20, 2024
1 parent c97bcf1 commit 1adff2f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci:build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
--volume "${GITHUB_WORKSPACE}/scripts/assert-replica-set.js":/scripts/assert-replica-set.js \
--log-opt max-size=100m \
--log-opt max-file=7 \
--health-cmd 'mongo --eval "replSet = \"meteor\"; address = \"127.0.0.1\"" /scripts/assert-replica-set.js' \
--health-cmd 'mongo --eval "replSet = \"meteor\"; hostname = \"localhost\"" /scripts/assert-replica-set.js' \
--health-interval 5s \
--health-retries 3 \
--health-timeout 10s \
Expand All @@ -177,7 +177,7 @@ jobs:
id: server
env:
ROOT_URL: http://localhost
MONGO_URL: mongodb://127.0.0.1:27017/meteor
MONGO_URL: mongodb://localhost:27017/meteor
PORT: 3000
run: |
cd dist
Expand All @@ -187,7 +187,7 @@ jobs:
- name: Wait for server port to be available
run: |
timeout 60 bash -c \
'until nc -z -v -w5 127.0.0.1 3000 ; do sleep 1; done'
'until nc -z -v -w5 localhost 3000 ; do sleep 1; done'
- name: Call healthcheck endpoint
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci:build:compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Wait for web port to be available
run: |
timeout 60 bash -c \
'until nc -z -v -w5 127.0.0.1 3000 ; do sleep 1; done'
'until nc -z -v -w5 localhost 3000 ; do sleep 1; done'
- name: Wait for web container to be healthy
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci:test:deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Wait for web port to be available
run: |
timeout 60 bash -c \
'until nc -z -v -w5 127.0.0.1 3000 ; do sleep 1; done'
'until nc -z -v -w5 localhost 3000 ; do sleep 1; done'
- name: Wait for web container to be healthy
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ EXPOSE 3000
ENV \
ROOT_URL="http://localhost" \
PORT="3000" \
MONGO_URL="mongodb://127.0.0.1:27017/meteor"
MONGO_URL="mongodb://localhost:27017/meteor"

HEALTHCHECK \
--interval=21s \
Expand Down

0 comments on commit 1adff2f

Please sign in to comment.