add cross-env
This commit is contained in:
@@ -39,6 +39,10 @@
|
|||||||
cd /fiv/fiv.server
|
cd /fiv/fiv.server
|
||||||
node index.js
|
node index.js
|
||||||
```
|
```
|
||||||
|
或者
|
||||||
|
```
|
||||||
|
sudo npm run daemon.pm2
|
||||||
|
```
|
||||||
|
|
||||||
## 部署
|
## 部署
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"dev": "node --inspect-brk ./",
|
"dev": "node --inspect-brk ./",
|
||||||
"mongod": "/mongodb/bin/mongod -f /mongodb/mongodb.conf --logpath /data/log/mongo.log",
|
"mongod": "/mongodb/bin/mongod -f /mongodb/mongodb.conf --logpath /data/log/mongo.log",
|
||||||
"daemon": "cross-env NODE_ENV=production pm2 start index.js --name fiv.server"
|
"daemon.pm2": "cross-env NODE_ENV=production pm2 start index.js --name fiv.server"
|
||||||
},
|
},
|
||||||
"author": "Nova.xu",
|
"author": "Nova.xu",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
@@ -43,6 +43,7 @@
|
|||||||
"web3": "^1.2.1"
|
"web3": "^1.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"cross-env": "^6.0.0",
|
||||||
"eslint": "^6.1.0"
|
"eslint": "^6.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user