This commit is contained in:
Ammar Qaffaf
2024-03-03 08:50:33 -05:00
parent 96a7bab4cd
commit 28c6dd0bab
3 changed files with 9 additions and 9 deletions

View File

@ -14,6 +14,6 @@ COPY . .
RUN npm run build
EXPOSE 80
EXPOSE 8080
CMD ["sh", "-c", "nginx -g 'daemon off;' & npm run start:all"]

View File

@ -11,7 +11,7 @@ http {
keepalive_timeout 65;
server {
listen 80;
listen 8080;
location /auth {
proxy_pass http://localhost:4001;

View File

@ -8,11 +8,11 @@
"scripts": {
"build": "nest build",
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"backend:dev": "nest start backend --watch",
"auth:dev": "nest start auth --watch",
"start:debug": "nest start --debug --watch",
"start": "npx nest start",
"start:dev": "npx nest start --watch",
"backend:dev": "npx nest start backend --watch",
"auth:dev": "npx nest start auth --watch",
"start:debug": "npx nest start --debug --watch",
"start:prod": "node dist/apps/backend/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
@ -20,8 +20,8 @@
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./apps/backend/test/jest-e2e.json",
"start:auth": "nest start auth",
"start:backend": "nest start backend",
"start:auth": "npx nest start auth",
"start:backend": "npx nest start backend",
"start:all": "concurrently \"npm run start:auth\" \"npm run start:backend\""
},
"dependencies": {