Add web server deployment
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user