mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 04:25:03 +08:00
完善部署流程,暂时注释掉前端picocss导入,以提升速度
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
10
Makefile
10
Makefile
@@ -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
|
||||
|
||||
|
||||
10
tools/ZSCWW-Scheduler.service
Normal file
10
tools/ZSCWW-Scheduler.service
Normal 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
|
||||
4
tools/scheduler.caddyfile
Normal file
4
tools/scheduler.caddyfile
Normal file
@@ -0,0 +1,4 @@
|
||||
scheduler.zsxyww.com {
|
||||
reverse_proxy 127.0.0.1:25005
|
||||
}
|
||||
|
||||
3
tools/start.sh
Normal file
3
tools/start.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#! /usr/bin/bash
|
||||
cd /opt/scheduler
|
||||
./scheduler --config ./production.yaml >>./log
|
||||
Reference in New Issue
Block a user