mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 07:14:53 +00:00
nest cli
This commit is contained in:
@ -14,6 +14,6 @@ COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["sh", "-c", "nginx -g 'daemon off;' & npm run start:all"]
|
||||
|
||||
@ -11,7 +11,7 @@ http {
|
||||
keepalive_timeout 65;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 8080;
|
||||
|
||||
location /auth {
|
||||
proxy_pass http://localhost:4001;
|
||||
|
||||
14
package.json
14
package.json
@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user