[package.json] rename debug/dev to check, debut to create
This commit is contained in:
@@ -4,15 +4,15 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"check": "node --inspect-brk index.js",
|
||||||
"dev": "node --inspect-brk ./",
|
"serve.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo",
|
||||||
|
"serve.pm2cluster": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo -i max",
|
||||||
"mongodb.install": "cd /root && wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-4.2.0.tgz && tar xzf mongodb-linux-x86_64-debian92-4.2.0.tgz && mv mongodb-linux-x86_64-debian92-4.2.0 mongodb && mkdir mongodb/backup && mkdir mongodb/log && mkdir /data && mkdir /data/db",
|
"mongodb.install": "cd /root && wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-4.2.0.tgz && tar xzf mongodb-linux-x86_64-debian92-4.2.0.tgz && mv mongodb-linux-x86_64-debian92-4.2.0 mongodb && mkdir mongodb/backup && mkdir mongodb/log && mkdir /data && mkdir /data/db",
|
||||||
"mongod": "/root/mongodb/bin/mongod -f /root/vic.server.mongo/mongod.conf --fork --dbpath /data/db",
|
"mongod": "/root/mongodb/bin/mongod -f /root/vic.server.mongo/mongod.conf --fork --dbpath /data/db",
|
||||||
"mongod.pm2": "pm2 start -x /root/mongodb/bin/mongod -n mongod -- --port 6842 --auth --dbpath /data/db --logpath /root/mongodb/log/mongod.log",
|
"mongod.pm2": "pm2 start -x /root/mongodb/bin/mongod -n mongod -- --port 6842 --auth --dbpath /data/db --logpath /root/mongodb/log/mongod.log",
|
||||||
"mongodump": "/root/mongodb/bin/mongodump -h localhost:6842 -d vic -o /root/mongodb/backup",
|
"mongodump": "/root/mongodb/bin/mongodump -h localhost:6842 -d vic -o /root/mongodb/backup",
|
||||||
"mongorestore": "/root/mongodb/bin/mongorestore -h localhost:6842 -d vic /root/mongodb/backup/vic",
|
"mongorestore": "/root/mongodb/bin/mongorestore -h localhost:6842 -d vic /root/mongodb/backup/vic",
|
||||||
"serve.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo",
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
"serve.pm2cluster": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo -i max"
|
|
||||||
},
|
},
|
||||||
"author": "Nova.xu",
|
"author": "Nova.xu",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|||||||
Reference in New Issue
Block a user