diff --git a/.github/workflows/deploy_with_git.yml b/.github/workflows/deploy_with_git.yml index b2501e6..4b8e324 100644 --- a/.github/workflows/deploy_with_git.yml +++ b/.github/workflows/deploy_with_git.yml @@ -36,6 +36,7 @@ jobs: if [[ $HAS_PYTHON_CHANGE == true ]]; then SSH_DEPLOY_COMMAND="$SSH_DEPLOY_COMMAND && ./restart-app.sh" fi + echo $SSH_DEPLOY_COMMAND ssh -i ${{env.SSH_KEY_FILE_PATH}} -o StrictHostKeyChecking=no ${{secrets.SSH_DEPLOY_USER}}@${{secrets.SSH_DEPLOY_HOST}} "$SSH_DEPLOY_COMMAND" - name: Clean deploy key file run: rm -rf ${{env.SSH_KEY_FILE_PATH}} \ No newline at end of file diff --git a/restart-app.sh b/restart-app.sh index 6e5ae41..1fa70ef 100755 --- a/restart-app.sh +++ b/restart-app.sh @@ -1,4 +1,4 @@ -PID=$(ps | grep app.py | grep -v grep | awk '{print \$1}') +PID=$(ps | grep app.py | grep -v grep | awk '{print $1}') echo $PID kill $PID -nohup python app.py & >> /dev/null \ No newline at end of file +nohup python app.py & \ 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)