|
@@ -8,8 +8,8 @@
|
|
"dev": "vite --force",
|
|
"dev": "vite --force",
|
|
"build": "vite build",
|
|
"build": "vite build",
|
|
"deploy:zip": "npm run build && npm run zipAndUpload && npm run unzip",
|
|
"deploy:zip": "npm run build && npm run zipAndUpload && npm run unzip",
|
|
- "zipAndUpload": "rm -rf iotDist.zip && zip -r -q iotDist.zip ./dist/favicon.ico ./dist/index.html ./dist/assets ./dist/imgs && ssh iot 'rm -rf /www/wwwroot/iotDist-old.zip' | ssh iot 'mv /www/wwwroot/iotDist.zip /www/wwwroot/iotDist-old.zip' | scp -r -O iotDist.zip iot:/www/wwwroot/",
|
|
|
|
- "unzip": "ssh iot 'cd /www/wwwroot/ && unzip -q -o -d zhgy.sagoo.cn iotDist.zip'",
|
|
|
|
|
|
+ "zipAndUpload": "cd dist && rm -rf zhgy.sagoo.cn.zip && zip -r -q zhgy.sagoo.cn.zip ./ && ssh iot 'rm -rf /www/wwwroot/zhgy.sagoo.cn-old.zip' | ssh iot 'mv /www/wwwroot/zhgy.sagoo.cn.zip /www/wwwroot/zhgy.sagoo.cn-old.zip' | scp -r -O zhgy.sagoo.cn.zip iot:/www/wwwroot/",
|
|
|
|
+ "unzip": "ssh iot 'cd /www/wwwroot/ && unzip -q -o -d ./zhgy.sagoo.cn zhgy.sagoo.cn.zip'",
|
|
"deploy": "npm run build && npm run deploy:rm && npm run deploy:scp && npm run deploy:auth",
|
|
"deploy": "npm run build && npm run deploy:rm && npm run deploy:scp && npm run deploy:auth",
|
|
"deploy:rm": "ssh iot 'rm -rf /www/wwwroot/zhgy.sagoo.cn-copy/* && rm -rf /www/wwwroot/zhgy.sagoo.cn-pre/*'",
|
|
"deploy:rm": "ssh iot 'rm -rf /www/wwwroot/zhgy.sagoo.cn-copy/* && rm -rf /www/wwwroot/zhgy.sagoo.cn-pre/*'",
|
|
"deploy:scp": "scp -r -O ./dist/* iot:/www/wwwroot/zhgy.sagoo.cn-pre/ && ssh iot 'cd /www/wwwroot/zhgy.sagoo.cn/ && mv `ls | grep -v plugin` ../zhgy.sagoo.cn-copy && mv ../zhgy.sagoo.cn-pre/* ./'",
|
|
"deploy:scp": "scp -r -O ./dist/* iot:/www/wwwroot/zhgy.sagoo.cn-pre/ && ssh iot 'cd /www/wwwroot/zhgy.sagoo.cn/ && mv `ls | grep -v plugin` ../zhgy.sagoo.cn-copy && mv ../zhgy.sagoo.cn-pre/* ./'",
|