mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-29 18:58:26 +08:00
chore: dotenv with pm2
This commit is contained in:
parent
87362789f3
commit
91289c4530
@ -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",
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user