diff --git a/deploy/feishu-approval.service b/deploy/feishu-approval.service deleted file mode 100644 index edfb02e..0000000 --- a/deploy/feishu-approval.service +++ /dev/null @@ -1,35 +0,0 @@ -[Unit] -Description=Feishu Approval External Data Service -After=network.target - -[Service] -Type=simple -WorkingDirectory=/Users/marsway/Workspace/杠上开花-1 -Environment=APP_MODULE=app.main:app -Environment=HOST=0.0.0.0 -Environment=PORT=8000 -Environment=LOG_LEVEL=info -ExecStart=/Users/marsway/Workspace/杠上开花-1/scripts/start.sh -Restart=always -RestartSec=3 - -[Install] -WantedBy=multi-user.target -[Unit] -Description=Feishu Approval External Data Service -After=network.target - -[Service] -Type=simple -User=www-data -WorkingDirectory=/opt/feishu-approval -Environment=APP_MODULE=app.main:app -Environment=HOST=0.0.0.0 -Environment=PORT=8000 -Environment=LOG_LEVEL=info -ExecStart=/opt/feishu-approval/scripts/start.sh -Restart=always -RestartSec=5 - -[Install] -WantedBy=multi-user.target diff --git a/deploy/feishu-huobanyun.service b/deploy/feishu-huobanyun.service new file mode 100644 index 0000000..aef852d --- /dev/null +++ b/deploy/feishu-huobanyun.service @@ -0,0 +1,17 @@ +[Unit] +Description=Feishu Huobanyun +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/feishu-huobanyun +Environment=APP_MODULE=app.main:app +Environment=HOST=0.0.0.0 +Environment=PORT=12123 +Environment=LOG_LEVEL=info +ExecStart=/opt/feishu-huobanyun/scripts/start.sh +Restart=always +RestartSec=3 + +[Install] +WantedBy=multi-user.target