rename "demo" to "serve-dev", "serve" to "serve-prod"

This commit is contained in:
Luk Lu
2023-01-04 19:48:43 +08:00
parent 95e55f0a49
commit c8cc17790f

View File

@@ -5,11 +5,11 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"check": "node --inspect-brk index.js", "check": "node --inspect-brk index.js",
"serve-pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo", "serve-prod-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", "serve-prod-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",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"