feat(server): add Dockerfile, docker-compose, and systemd service templates for deployment
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=AeroTrack LAN Multi-device Sync Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
# 请将 WorkingDirectory 改为服务器上实际的 server 目录路径
|
||||
WorkingDirectory=/opt/AeroTrack/server
|
||||
ExecStart=/usr/bin/python3 /opt/AeroTrack/server/server.py 8090
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user