This commit is contained in:
jackyu66git
2025-05-22 12:38:02 +08:00
parent fa3cb6c96b
commit a1e033432b
10 changed files with 577 additions and 12 deletions
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=ChanLun Web Application
After=network.target
[Service]
User=<用户名>
Group=<用户组>
WorkingDirectory=/path/to/user_data/Chan/web
ExecStart=/usr/local/bin/gunicorn -w 4 -b 0.0.0.0:8123 app:app
Restart=on-failure
StandardOutput=file:/path/to/user_data/Chan/web/logs/output.log
StandardError=file:/path/to/user_data/Chan/web/logs/error.log
[Install]
WantedBy=multi-user.target