From 5020b65e92649616ec2297e0da3bfba0b521c37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ho=C3=A0ng=20Rio?= Date: Tue, 26 Nov 2024 09:43:36 +0700 Subject: [PATCH] cicd: use sh instead of bash --- .github/workflows/deploy_with_git.yml | 2 +- web_viewer/device_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_with_git.yml b/.github/workflows/deploy_with_git.yml index 3643da2..636c4c1 100644 --- a/.github/workflows/deploy_with_git.yml +++ b/.github/workflows/deploy_with_git.yml @@ -39,7 +39,7 @@ jobs: fi cat ${{env.SSH_COMMAND_FILE}} chmod +x ${{env.SSH_COMMAND_FILE}} - ssh -i ${{env.SSH_KEY_FILE_PATH}} -o StrictHostKeyChecking=no ${{secrets.SSH_DEPLOY_USER}}@${{secrets.SSH_DEPLOY_HOST}} 'bash -' < ${{env.SSH_COMMAND_FILE}} + ssh -i ${{env.SSH_KEY_FILE_PATH}} -o StrictHostKeyChecking=no ${{secrets.SSH_DEPLOY_USER}}@${{secrets.SSH_DEPLOY_HOST}} 'sh -c' < ${{env.SSH_COMMAND_FILE}} rm -rf ${{env.SSH_COMMAND_FILE}} - name: Clean deploy key file run: rm -rf ${{env.SSH_KEY_FILE_PATH}} \ No newline at end of file diff --git a/web_viewer/device_manager.py b/web_viewer/device_manager.py index 23c3014..f326a54 100644 --- a/web_viewer/device_manager.py +++ b/web_viewer/device_manager.py @@ -1,3 +1,3 @@ from aiohttp.aiohttp import web def register(request: web.Request): - print(request.path) + print(request.url)