add pm2 script to package.json

This commit is contained in:
luk.lu
2019-09-24 09:18:08 +08:00
parent b02840c0cf
commit 8f753c0f4b
2 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,8 @@
"scripts": {
"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": "sudo /mongodb/bin/mongod -f /mongodb/mongodb.conf --logpath /data/log/mongo.log",
"daemon": "sudo cross-env NODE_ENV=production pm2 start index.js --name fiv.server"
},
"author": "Nova.xu",
"license": "ISC",