Skip to content

Commit

Permalink
Port 3000 again
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiollende committed Apr 28, 2024
1 parent 3fbdb5a commit 53abbe3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ services:
depends_on:
- gatewayservice
ports:
- "80:80"
- "3000:3000"

prometheus:
image: prom/prometheus
Expand Down
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 53abbe3

Please sign in to comment.