From 53abbe370a6be0ffe106ed031fc56e647b785635 Mon Sep 17 00:00:00 2001 From: sergiollende Date: Sun, 28 Apr 2024 23:45:37 +0200 Subject: [PATCH] Port 3000 again --- .github/workflows/release.yml | 2 +- docker-compose.yml | 2 +- webapp/Dockerfile | 2 +- webapp/package.json | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8154b5..1661dae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -105,7 +105,7 @@ jobs: - name: Publish to Registry uses: elgohr/Publish-Docker-Github-Action@v5 env: - WEBAPP_URI: http://${{ secrets.DEPLOY_HOST }}:80 + WEBAPP_URI: http://${{ secrets.DEPLOY_HOST }}:3000 with: name: arquisoft/wiq_en3a/gatewayservice username: ${{ github.actor }} diff --git a/docker-compose.yml b/docker-compose.yml index 6a3667d..0d37a80 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -60,7 +60,7 @@ services: depends_on: - gatewayservice ports: - - "80:80" + - "3000:3000" prometheus: image: prom/prometheus diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 6afce78..e70d91b 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -8,7 +8,7 @@ RUN npm install ARG API_URI="http://localhost:8000" ENV REACT_APP_API_ENDPOINT=$API_URI -ENV PORT=80 +ENV PORT=3000 #Create an optimized version of the webapp RUN npm run build diff --git a/webapp/package.json b/webapp/package.json index 82f5410..d5c4cdb 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -33,11 +33,11 @@ "zustand": "^4.5.2" }, "scripts": { - "start": "set PORT=80 && set HTTP=true && react-scripts start", - "build": "set PORT=80 && set HTTP=true && react-scripts build", + "start": "set PORT=3000 && set HTTP=true && react-scripts start", + "build": "set PORT=3000 && set HTTP=true && react-scripts build", "prod": "serve -s build -l 3000", "test": "react-scripts test --transformIgnorePatterns 'node_modules/(?!axios)/'", - "test:e2e": "cross-env START_SERVER_AND_TEST_INSECURE=1 PORT=80 npm run rune2etests", + "test:e2e": "cross-env START_SERVER_AND_TEST_INSECURE=1 PORT=3000 npm run rune2etests", "rune2etests": "start-server-and-test 'node e2e/test-environment-setup.js' http://localhost:8000/health prod 3000 \"cd e2e && jest\"", "eject": "react-scripts eject" },