Updates application port to 3004

WHAT: Updates the application's default port from 8080 to 3004 across various Docker configurations and scripts. This includes changes to Dockerfiles, docker-compose files, and startup scripts. Also updates the vite config.
WHY: Standardizes the port used by the application to 3004 for consistency and to avoid potential conflicts with other services that might be using port 8080.
HOW: Modifies the `EXPOSE` directives in the Dockerfiles, the port mappings in the docker-compose files, the default port in the main application server file, the port in the vite config and the scripts that display the API URL.
This commit is contained in:
Chenwei Jiang 2025-08-21 14:55:16 +08:00
parent 1b16056075
commit 31801d0991
Signed by: cheverjohn
GPG key ID: ADC4815BFE960182
8 changed files with 11 additions and 10 deletions

View file

@ -17,10 +17,10 @@ RUN cd server && npm install --omit=dev --build-from-source
COPY server/dist ./server/dist
COPY dist ./frontend
ENV PORT=8080
ENV PORT=3004
ENV DB_PATH=/data/purchase.db
EXPOSE 8080
EXPOSE 3004
CMD ["node", "server/dist/index.js"]