From 366323a0111d1be3c8c2e2cc2fff1142abccb152 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 20 Sep 2023 19:00:57 +0800 Subject: [PATCH] test drone --- .drone.yml | 24 +++++++++---------- .../SettleAccount.HttpApi.Host/Program.cs | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index 47b6a666..32b280ef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,17 +19,17 @@ steps: - echo ${DRONE_COMMIT_MESSAGE}>./publish/version.txt - dotnet nuget locals global-packages --list - - name: publish - image: plugins/s3 - settings: - endpoint: http://dev.ccwin-in.com:3008 - path_style: true - bucket: default - access_key: O222sbIaMKeGfeX18t8K - secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR - source: build/publish/**/* - strip_prefix: build/publish/ - target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} + # - name: publish + # image: plugins/s3 + # settings: + # endpoint: http://dev.ccwin-in.com:3008 + # path_style: true + # bucket: default + # access_key: O222sbIaMKeGfeX18t8K + # secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR + # source: build/publish/**/* + # strip_prefix: build/publish/ + # target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} - name: stop image: appleboy/drone-ssh @@ -43,7 +43,7 @@ steps: - mkdir -p /d/BQ-JS/publish - cd /d/BQ-JS - cmd.exe - - cd publish&stop.cmd&cd ..&rm -rf publish + - cd publish&stop.cmd&sleep 3&cd ..&rm -rf publish - name: deploy-ftp image: cschlosser/drone-ftps diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs index 8e90d366..44f1a678 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs @@ -17,7 +17,7 @@ namespace Win.Sfs.SettleAccount Log.Logger = new LoggerConfiguration() .WriteTo.Async(c => c.Console()) - .WriteTo.Async(c => c.File("Logs/logs.txt" + .WriteTo.Async(c => c.File("../Logs/logs.txt" , rollingInterval: RollingInterval.Day , rollOnFileSizeLimit: true , fileSizeLimitBytes: 30 * 1024 * 1024))