添加 mongodb 目录,设置 pacakge.json 中的相关 script

This commit is contained in:
Luk Lu
2019-10-03 09:59:16 +08:00
parent 538b73e015
commit b03b94ede2
3 changed files with 5 additions and 2 deletions

View File

@@ -7,6 +7,8 @@
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "node --inspect-brk ./",
"mongod": "/mongodb/bin/mongod -f /mongodb/mongodb.conf --logpath /data/log/mongo.log",
"mongod-org": "mongod -f ./mongodb/mongod.conf --logpath ./mongodb/log/mongo.log",
"mongodump": "mongodump -h localhost:6842 -d vic -o ./mongodb/dump",
"daemon.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server"
},
"author": "Nova.xu",