mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 12:35:03 +08:00
完善部署流程,暂时注释掉前端picocss导入,以提升速度
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 align=center>管理</h1>
|
<h1 align=center>管理</h1>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<html data-theme="light">
|
<html data-theme="light">
|
||||||
<head>
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<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>
|
</head>
|
||||||
<body >
|
<body >
|
||||||
<div align=center>
|
<div align=center>
|
||||||
|
|||||||
10
Makefile
10
Makefile
@@ -3,10 +3,12 @@ build:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
go build -o scheduler
|
go build -o scheduler
|
||||||
cp ./scheduler /opt/zscww_scheduler/scheduler
|
cp ./scheduler /opt/scheduler/scheduler
|
||||||
cp -r FrontEnd /opt/zscww_scheduler/FrontEnd
|
cp -r FrontEnd /opt/scheduler/FrontEnd
|
||||||
chmod +x /opt/zscww_scheduler/scheduler
|
cp -r templates /opt/scheduler/templates
|
||||||
echo "部署脚本执行完成,记得放入member.csv数据文件"
|
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
|
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