Skip to content

Commit

Permalink
hotfix: hide port number
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellol77 committed Jun 28, 2024
1 parent d2a34ba commit 5eadca2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/waggle-service-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
docker stop ${{secrets.DOCKER_CONTAINER_NAME}}
docker rm ${{secrets.DOCKER_CONTAINER_NAME}}
docker pull ${{ secrets.DOCKER_USERNAME }}/waggle-front-waggle-service
docker run -d -p 3001:80 --name "${{secrets.DOCKER_CONTAINER_NAME}}" ${{ secrets.DOCKER_USERNAME }}/waggle-front-waggle-service
docker run -d -p 80:80 --name "${{secrets.DOCKER_CONTAINER_NAME}}" ${{ secrets.DOCKER_USERNAME }}/waggle-front-waggle-service
- name: Remove Github Actions IP from security group
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ RUN rm -rf ./usr/share/nginx/html/*

COPY --from=Release /app/packages/waggle-service/dist ./usr/share/nginx/html/

EXPOSE 3001
EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ services:
context: .
dockerfile: Dockerfile
ports:
- "3001:80"
- "80:80"
stdin_open: true
10 changes: 5 additions & 5 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

server {
listen 80;
server_name waggle-pet.com;

root /usr/share/nginx/html;
index index.html;

location / {
root /usr/share/nginx/html;
index index.html index.html;
try_files $uri $uri/ /index.html;

}

}
2 changes: 1 addition & 1 deletion packages/waggle-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview --port 3001 --host",
"preview": "vite preview --port 80 --host",
"lint": "eslint './src/**/*.{ts,tsx,js,jsx}'",
"lint:fix": "eslint --fix './src/**/*.{ts,tsx,js,jsx}'",
"prepare": "husky install",
Expand Down
2 changes: 1 addition & 1 deletion packages/waggle-service/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineConfig({
base: "/",
server: {
host: true,
port: 3001,
port: 80,
},
test: {
globals: true,
Expand Down

0 comments on commit 5eadca2

Please sign in to comment.