Add web server deployment

This commit is contained in:
jackyu66git
2025-04-30 11:17:50 +08:00
parent 645c66d23d
commit 8adfa1bbdc
15 changed files with 129 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Chan Lun Trading Analysis
After=network.target
[Service]
User=your_username
Group=your_groupname
WorkingDirectory=/path/to/your/project/user_data/Chan/web
ExecStart=/path/to/your/project/gunicorn_start.sh
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
+12
View File
@@ -0,0 +1,12 @@
# copy chanlun.service to:
/etc/systemd/system/chanlun.service
# run command:
sudo systemctl daemon-reload
sudo systemctl enable chanlun
sudo systemctl start chanlun
# check status:
sudo systemctl status chanlun
# check logs:
sudo journalctl -u chanlun -f