add daemon.pm2 script

This commit is contained in:
Luk Lu
2019-10-24 23:35:09 +08:00
parent e8ad270538
commit 40bbe173c0
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
module.exports={ module.exports={
protocol: 'httpall', protocol: 'https',
host: 'server.vic.yuanjin.net', host: 'server.vic.yuanjin.net',
port: undefined, port: undefined,
// 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置: // 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置:

View File

@@ -13,7 +13,7 @@
"dist": "umi build", "dist": "umi build",
"deploy": "node ./node_modules/deployer/deploy.js --type git --repo 'https://github.com/vichome/webapp' --local 'dist'", "deploy": "node ./node_modules/deployer/deploy.js --type git --repo 'https://github.com/vichome/webapp' --local 'dist'",
"allinone": "npm run dist && npm run deploy", "allinone": "npm run dist && npm run deploy",
"daemon4test.pm2": "cross-env NODE_ENV=production pm2 start ./node_modules/webserver/server.js --name vic.h5 -- -H server4test.vic.yuanjin.net -P http" "daemon.pm2": "cross-env NODE_ENV=production pm2 start ./node_modules/webserver/server.js --name vic.h5"
}, },
"dependencies": { "dependencies": {
"@types/react-virtualized-auto-sizer": "^1.0.0", "@types/react-virtualized-auto-sizer": "^1.0.0",