From 3e2cbf017983fbdc221da8de444e996cd5d6cff2 Mon Sep 17 00:00:00 2001 From: amass Date: Thu, 21 Nov 2024 00:23:59 +0800 Subject: [PATCH] deploy res. --- .gitea/workflows/deploy.yaml | 3 ++- WebApplication/Dialog.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index e87f8ac..fe4f2f8 100755 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -87,7 +87,8 @@ jobs: username: ${{ vars.YUYUN_USER }} password: ${{ secrets.SERVER_ROOT_PASSWORD }} script: | - systemctl restart openresty.service; exit 0 + cd /root/Server + openresty -p . -s reload - name: Notify-End if: ${{ always() }} run: | diff --git a/WebApplication/Dialog.cpp b/WebApplication/Dialog.cpp index 49bb6c6..32d7bca 100644 --- a/WebApplication/Dialog.cpp +++ b/WebApplication/Dialog.cpp @@ -36,7 +36,7 @@ void Dialog::setStatus(const Wt::WString &result) { } void Dialog::messageBox1() { - Wt::WMessageBox::show("信息", "这是一个对话框示例。 ", Wt::StandardButton::Ok); + Wt::WMessageBox::show("信息", "这是一个对话框示例。", Wt::StandardButton::Ok); setStatus("Ok'ed"); }