From 49c01118a8782caa1e8cfa2c1b2e0db86f199ab7 Mon Sep 17 00:00:00 2001 From: binlab Date: Sat, 23 Sep 2023 15:58:31 +0000 Subject: [PATCH] Update .gitea/workflows/deploy-new.yml --- .gitea/workflows/deploy-new.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-new.yml b/.gitea/workflows/deploy-new.yml index f8444be..60fbafc 100644 --- a/.gitea/workflows/deploy-new.yml +++ b/.gitea/workflows/deploy-new.yml @@ -36,7 +36,7 @@ jobs: # clones entire github repo local_path: ./* # destination of the code on the server - remote_path: /root/${{ env.REPO_NAME }}/ + remote_path: /home/admin/${{ env.REPO_NAME }}/ args: '-o ConnectTimeout=5' # you may or may not need this. It all depends on how your code retrieves your discord token @@ -74,11 +74,11 @@ jobs: After=multi-user.target [Service] Type=simple - ExecStart=/usr/bin/python3 /root/${{ env.REPO_NAME }}/main.py + ExecStart=/usr/bin/python3 /home/admin/${{ env.REPO_NAME }}/main.py User=root Restart=on-failure RestartSec=30 - WorkingDirectory=/root/${{ env.REPO_NAME }}/ + WorkingDirectory=/home/admin/${{ env.REPO_NAME }}/ [Install] WantedBy=multi-user.target" >> /etc/systemd/system/${{ env.REPO_NAME }}.service chmod +x /root/${{ env.REPO_NAME }}/main.py