Browse Source

update drone

master
wanggang 1 year ago
parent
commit
3578581412
  1. 7
      .drone.yml
  2. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd
  3. 14
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.sh
  4. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/stop.cmd
  5. 3
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/stop.sh

7
.drone.yml

@ -42,7 +42,9 @@ steps:
script: script:
- mkdir -p /d/BQ-JS/publish - mkdir -p /d/BQ-JS/publish
- cd /d/BQ-JS/publish - cd /d/BQ-JS/publish
- cmd.exe -k stop.cmd - cmd.exe
- stop.sh
- exit
- sleep 3s - sleep 3s
- cd .. - cd ..
- rm -rf publish - rm -rf publish
@ -71,7 +73,8 @@ steps:
command_timeout: 10m command_timeout: 10m
script: script:
- cd /d/BQ-JS/publish - cd /d/BQ-JS/publish
- cmd.exe -k start.cmd - cmd.exe
- start.sh
# - name: deploy-scp # - name: deploy-scp
# image: appleboy/drone-scp # image: appleboy/drone-scp

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd

@ -3,7 +3,7 @@
tasklist|find /i "SettleAccount.HttpApi.Host.exe" tasklist|find /i "SettleAccount.HttpApi.Host.exe"
if %errorlevel% == 0 ( if %errorlevel% == 0 (
  exit exit
) )

14
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.sh

@ -0,0 +1,14 @@
@echo off
tasklist|find /i "SettleAccount.HttpApi.Host.exe"
if %errorlevel% == 0 (
exit
)
cd /d %~dp0
%1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit
start /b SettleAccount.HttpApi.Host.exe --urls http://*:16082

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/stop.cmd

@ -1,3 +1,3 @@
@ECHO OFF @echo off
taskkill /im SettleAccount.HttpApi.Host.exe /f /t taskkill /im SettleAccount.HttpApi.Host.exe /f /t

3
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/stop.sh

@ -0,0 +1,3 @@
@echo off
taskkill /im SettleAccount.HttpApi.Host.exe /f /t
Loading…
Cancel
Save