This commit is contained in:
GeekROS
2024-03-04 00:05:39 +08:00
parent 53bcced507
commit 2c392f7590
3 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ After=syslog.target network.target
[Service]
Type=simple
User=root
Environment=GODOT_SILENCE_ROOT_WARNING=1
WorkingDirectory=/data/wwwroot/game/
ExecStart=/data/wwwroot/game/server.x86_64 --headless

View File

@@ -4,6 +4,7 @@ After=syslog.target network.target
[Service]
Type=simple
User=root
WorkingDirectory=/data/wwwroot/server/
ExecStart=/data/wwwroot/server/main
Restart=on-failure

View File

@@ -1,5 +1,5 @@
@echo off
scp -r ./engine/release/server* root@172.21.255.206:/data/wwwroot/game/
scp -r ./engine/release/server* root@172.21.254.81:/data/wwwroot/game/
ssh root@172.21.255.206 "chmod +x /data/wwwroot/game/* && cd /opt/Engine2D && sudo ./tools/update.sh"
ssh root@172.21.254.81 "chmod +x /data/wwwroot/game/* && cd /opt/Engine2D && sudo ./tools/update.sh"