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