add cross-env
This commit is contained in:
@@ -39,6 +39,10 @@
|
||||
cd /fiv/fiv.server
|
||||
node index.js
|
||||
```
|
||||
或者
|
||||
```
|
||||
sudo npm run daemon.pm2
|
||||
```
|
||||
|
||||
## 部署
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"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",
|
||||
"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",
|
||||
"license": "ISC",
|
||||
@@ -43,6 +43,7 @@
|
||||
"web3": "^1.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cross-env": "^6.0.0",
|
||||
"eslint": "^6.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user