chore: dotenv with pm2

This commit is contained in:
chenos 2022-04-26 22:30:46 +08:00
parent 87362789f3
commit 91289c4530
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
],
"scripts": {
"start": "concurrently --kill-others \"npm run start-server\" \"npm run start-client\"",
"start-pm2": "yarn pm2-runtime start packages/app/server/lib/index.js",
"start-pm2": "pm2-runtime start --node-args=\"-r dotenv/config\" packages/app/server/lib/index.js -- start",
"start-docs": "dumi dev",
"bootstrap": "lerna bootstrap",
"clean": "rimraf -rf packages/{app,core,plugins}/*/{lib,esm,dist} && lerna clean",

View File

@ -15,7 +15,7 @@ module.exports = (opts) => {
'nocobase-prod': 'cross-env DOTENV_CONFIG_PATH=.env node -r dotenv/config packages/app/server/lib/index.js',
'start-client': 'cd packages/app/client && npm run start',
'start-server': 'npm run nocobase start',
'start-pm2': 'pm2-runtime start packages/app/server/lib/index.js -- start',
'start-pm2': 'pm2-runtime start --node-args="-r dotenv/config" packages/app/server/lib/index.js -- start',
build: 'lerna run build',
'build-docs': 'dumi build',
test: 'node ./jest.cli.js -i',