Update .gitea/workflows/deploy-new.yml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user