Update .gitea/workflows/deploy-new.yml
This commit is contained in:
@@ -36,7 +36,7 @@ jobs:
|
|||||||
# clones entire github repo
|
# clones entire github repo
|
||||||
local_path: ./*
|
local_path: ./*
|
||||||
# destination of the code on the server
|
# destination of the code on the server
|
||||||
remote_path: /root/${{ env.REPO_NAME }}/
|
remote_path: /home/admin/${{ env.REPO_NAME }}/
|
||||||
args: '-o ConnectTimeout=5'
|
args: '-o ConnectTimeout=5'
|
||||||
|
|
||||||
# you may or may not need this. It all depends on how your code retrieves your discord token
|
# 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
|
After=multi-user.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
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
|
User=root
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=30
|
RestartSec=30
|
||||||
WorkingDirectory=/root/${{ env.REPO_NAME }}/
|
WorkingDirectory=/home/admin/${{ env.REPO_NAME }}/
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >> /etc/systemd/system/${{ env.REPO_NAME }}.service
|
WantedBy=multi-user.target" >> /etc/systemd/system/${{ env.REPO_NAME }}.service
|
||||||
chmod +x /root/${{ env.REPO_NAME }}/main.py
|
chmod +x /root/${{ env.REPO_NAME }}/main.py
|
||||||
|
|||||||
Reference in New Issue
Block a user