Fixed npm run start:prod not able to find build directory (#83)

This commit is contained in:
Alex 2022-03-28 21:00:17 -05:00 committed by GitHub
parent ac0ad98b55
commit 23ba651705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -6,7 +6,7 @@ services:
build: build:
context: ../server context: ../server
dockerfile: ../server/Dockerfile dockerfile: ../server/Dockerfile
command: npm run start:prod entrypoint: ["/bin/sh", "./entrypoint.sh"]
expose: expose:
- "3000" - "3000"
volumes: volumes:
@ -28,7 +28,7 @@ services:
build: build:
context: ../microservices context: ../microservices
dockerfile: ../microservices/Dockerfile dockerfile: ../microservices/Dockerfile
command: npm run start:prod entrypoint: ["/bin/sh", "./entrypoint.sh"]
expose: expose:
- "3001" - "3001"
volumes: volumes:

View file

@ -0,0 +1,2 @@
# npm run typeorm migration:run
npm run build && npm run start:prod

View file

@ -1,2 +1,2 @@
# npm run typeorm migration:run # npm run typeorm migration:run
npm run start:dev npm run build && npm run start:prod