make command not block.
Some checks failed
Deploy Docker Images / Build dockerfile and Server deploy (push) Successful in 15s
Deploy / Build (push) Failing after 2m55s

This commit is contained in:
amass 2024-11-10 20:29:54 +08:00
parent e833d990db
commit 0fca4a6e41
2 changed files with 7 additions and 8 deletions

View File

@ -48,13 +48,13 @@ jobs:
username: ${{ vars.YUYUN_USER }}
password: ${{ secrets.SERVER_ROOT_PASSWORD }}
script: |
cd /root/Server
source /etc/profile
/root/Server/HttpServer --exit
sleep 10
cp /tmp/HttpServer /root/Server/HttpServer
/root/Server/HttpServer &
exit 0
cd /root/Server;
source /etc/profile;
/root/Server/HttpServer --exit;
sleep 10;
cp /tmp/HttpServer /root/Server/HttpServer;
/root/Server/HttpServer &;
exit 0;
- name: Notify-End
if: ${{ always() }}
run: |

View File

@ -346,7 +346,6 @@ void Application::startAcceptRequest() {
}
void Application::requetExit() {
nng_log_set_logger(nng_stderr_logger);
LOG(info) << "send exit request to program.";
Nng::Socket request(Nng::Request);
request.setOption(Nng::RecvTimeout, std::chrono::milliseconds(2000));