Browse Source

发布脚本

master
sige 1 year ago
parent
commit
8c0da144ae
  1. 4
      publish.ps1

4
publish.ps1

@ -1,5 +1,5 @@
Param(
[String]$Exec="Deplay"
[String]$Exec="Deploy"
)
if ( $Exec -eq "DevDisable" ) {
@ -8,7 +8,7 @@ if ( $Exec -eq "DevDisable" ) {
} elseif ( $Exec -eq "DevEnable" ) {
ssh root:zwsd@192.168.8.12 "touch /var/zapp_flag/chrome_in_test_mode";
ssh root:zwsd@192.168.8.12 "reboot"
} elseif ( $Exec -eq "Deplay" ) {
} elseif ( $Exec -eq "Deploy" ) {
# build project
yarn build
# rename dist to current time, like 20221215121300

Loading…
Cancel
Save