backend: set NODE_ENV for production and development start scripts
This commit is contained in:
parent
89ec61249a
commit
e9f9dbeb04
@ -31,8 +31,8 @@
|
||||
"postbuild:prod": "npm run doc:api && npm run doc:internal-api",
|
||||
"doc:api": "mkdir -p public/openapi && cd openapi && npx openapi-generate-html -i openvidu-meet-api.yaml --ui=stoplight --theme=light --title 'OpenVidu Meet REST API' --description 'OpenVidu Meet REST API' -o ../public/openapi/public.html",
|
||||
"doc:internal-api": "mkdir -p public/openapi && cd openapi && npx openapi-generate-html -i openvidu-meet-internal-api.yaml --ui=stoplight --theme=dark --title 'OpenVidu Meet Internal REST API' --description 'OpenVidu Meet Internal REST API' -o ../public/openapi/internal.html",
|
||||
"start:prod": "node dist/src/server.js",
|
||||
"start:dev": "nodemon",
|
||||
"start:prod": "NODE_ENV=production node dist/src/server.js",
|
||||
"start:dev": "NODE_ENV=development nodemon",
|
||||
"package:build": "npm run build:prod && npm pack",
|
||||
"lib:sync-pro": "npm run package:build && cp openvidu-meet-server-*.tgz ../../openvidu-meet-pro/backend",
|
||||
"typings:sync": "npm run sync-ce --prefix ../typings",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user