feat: 端口改为 1219,install.sh 支持 systemd 后台部署,增加目录非 git 仓库时自动重建
This commit is contained in:
18
qzmusic-web.service
Normal file
18
qzmusic-web.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=QZMusic Web Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/QZMusic-Web
|
||||
ExecStart=/usr/bin/env node server.cjs
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
Environment=NODE_ENV=production
|
||||
Environment=QZMUSIC_PORT=1219
|
||||
Environment=QZMUSIC_HOST=0.0.0.0
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user