chore: dotenv with pm2
This commit is contained in:
parent
87362789f3
commit
91289c4530
@ -15,7 +15,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "concurrently --kill-others \"npm run start-server\" \"npm run start-client\"",
|
"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",
|
"start-docs": "dumi dev",
|
||||||
"bootstrap": "lerna bootstrap",
|
"bootstrap": "lerna bootstrap",
|
||||||
"clean": "rimraf -rf packages/{app,core,plugins}/*/{lib,esm,dist} && lerna clean",
|
"clean": "rimraf -rf packages/{app,core,plugins}/*/{lib,esm,dist} && lerna clean",
|
||||||
|
@ -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',
|
'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-client': 'cd packages/app/client && npm run start',
|
||||||
'start-server': 'npm run nocobase 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: 'lerna run build',
|
||||||
'build-docs': 'dumi build',
|
'build-docs': 'dumi build',
|
||||||
test: 'node ./jest.cli.js -i',
|
test: 'node ./jest.cli.js -i',
|
||||||
|
Loading…
Reference in New Issue
Block a user