rename vic.server to vic.server.mongo

This commit is contained in:
Luk Lu
2021-05-01 10:22:26 +08:00
parent 56bf0840a8
commit df50b9288d
2 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "vic.server",
"name": "vic.server.mongo",
"version": "1.0.0",
"description": "",
"main": "index.js",
@@ -7,12 +7,12 @@
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "node --inspect-brk ./",
"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/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",
"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",
"daemon.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server",
"daemon.pm2cluster": "cross-env NODE_ENV=production pm2 start index.js --name vic.server -i max"
"daemon.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo",
"daemon.pm2cluster": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo -i max"
},
"author": "Nova.xu",
"license": "ISC",