Skip to content

Commit

Permalink
feat: change default ports
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Jun 22, 2024
1 parent 47266ba commit a04ce4e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN npm ci --prefix server

COPY . .

ARG SERVER_PORT=5000
ARG SERVER_PORT=5050
ARG VERSION
ARG NEXT_PUBLIC_API_ORIGIN=http://localhost:$SERVER_PORT
ARG DATABASE_URL=file:../../data/app.db
Expand All @@ -26,9 +26,9 @@ FROM node:20-alpine

WORKDIR /usr/src/app

ARG CLIENT_PORT=5001
ARG CLIENT_PORT=5051

ENV PORT=5000
ENV PORT=5050
ENV CLIENT_PORT=$CLIENT_PORT
ENV COGNITO_USER_POOL_ID=ap-northeast-1_default
ENV COGNITO_USER_POOL_CLIENT_ID=default-client-id
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ $ docker compose up -d
$ npm run notios
```

Web ブラウザで http://localhost:5001 を開く
Web ブラウザで http://localhost:5051 を開く

開発時のターミナル表示は [notios](https://github.com/frouriojs/notios) で制御している

Expand Down
2 changes: 1 addition & 1 deletion client/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_API_ORIGIN=http://localhost:5000
NEXT_PUBLIC_API_ORIGIN=http://localhost:5050
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "client",
"scripts": {
"dev": "run-p dev:*",
"dev:client": "next dev -p 5001",
"dev:client": "next dev -p 5051",
"dev:hcm": "hcm '**/*.module.css' -w",
"dev:aspida": "aspida --watch",
"dev:path": "pathpida --ignorePath .gitignore -s -w",
Expand Down
2 changes: 1 addition & 1 deletion server/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PORT=5000
PORT=5050
CLIENT_PORT=
DATABASE_URL=file:../../data/app.db
TEST_DATABASE_URL=file:../../data/test.db
Expand Down

0 comments on commit a04ce4e

Please sign in to comment.