完善部署流程,暂时注释掉前端picocss导入,以提升速度

This commit is contained in:
2025-05-22 13:56:21 +08:00
parent 2a408f9cfd
commit 5350283059
7 changed files with 26 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdmirror.com/npm/@picocss/pico@2/css/pico.min.css">
<!-- <link rel="stylesheet" href="https://cdn.jsdmirror.com/npm/@picocss/pico@2/css/pico.min.css"> -->
</head>
<body>
<h1 align=center>管理</h1>

View File

@@ -1,6 +1,6 @@
<html data-theme="light">
<head>
<link rel="stylesheet" href="https://cdn.jsdmirror.com/npm/@picocss/pico@2/css/pico.min.css">
<!-- <link rel="stylesheet" href="https://cdn.jsdmirror.com/npm/@picocss/pico@2/css/pico.min.css"> -->
</head>
<body>
<div>

View File

@@ -1,6 +1,6 @@
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdmirror.com/npm/@picocss/pico@2/css/pico.min.css">
<!-- <link rel="stylesheet" href="https://cdn.jsdmirror.com/npm/@picocss/pico@2/css/pico.min.css"> -->
</head>
<body >
<div align=center>

View File

@@ -3,10 +3,12 @@ build:
deploy:
go build -o scheduler
cp ./scheduler /opt/zscww_scheduler/scheduler
cp -r FrontEnd /opt/zscww_scheduler/FrontEnd
chmod +x /opt/zscww_scheduler/scheduler
echo "部署脚本执行完成记得放入member.csv数据文件"
cp ./scheduler /opt/scheduler/scheduler
cp -r FrontEnd /opt/scheduler/FrontEnd
cp -r templates /opt/scheduler/templates
cp -r tools /opt/scheduler/tools
ln -s /opt/scheduler/tools/ZSCWW-Scheduler.service /etc/systemd/system/ZSCWW-Scheduler.service
echo "部署脚本执行完成记得放入以及在tools/start.sh中修改配置文件,在新环境运行时记得带上--init-db参数"
default: help

View File

@@ -0,0 +1,10 @@
[Unit]
Description = Scheduler for ZSC Network Support
After = network.target
[Service]
ExecStart=/opt/scheduler/tools/start.sh
Restart=always
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,4 @@
scheduler.zsxyww.com {
reverse_proxy 127.0.0.1:25005
}

3
tools/start.sh Normal file
View File

@@ -0,0 +1,3 @@
#! /usr/bin/bash
cd /opt/scheduler
./scheduler --config ./production.yaml >>./log