From edaf8e71135b2dde53c1c3179fb225b30829df77 Mon Sep 17 00:00:00 2001 From: beetcb <63141491+beetcb@users.noreply.github.com> Date: Thu, 28 Oct 2021 14:31:40 +0800 Subject: [PATCH] fix: cron trigger time --- docker/cea-cron | 2 +- docs/deploy.md | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docker/cea-cron b/docker/cea-cron index bca5a62..23221d7 100644 --- a/docker/cea-cron +++ b/docker/cea-cron @@ -1,5 +1,5 @@ SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root -* * * * * cea sign +30 6 * * * cea sign # An empty line is required at the end of this file for a valid cron file. \ No newline at end of file diff --git a/docs/deploy.md b/docs/deploy.md index 43cf222..f73e320 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -1,4 +1,3 @@ -
Docker 部署 1. 按照 [README.md](https://github.com/ceajs/cea#%E4%BD%9C%E4%B8%BA%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%BD%BF%E7%94%A8) 安装 cea,使用 CLI 配置用户(如果你用配置文件,记得运行 `cea load` 来加载用户) @@ -7,7 +6,13 @@ ```bash sudo docker build -t cea-check-in https://github.com/ceajs/cea.git#main:docker - + sudo docker run -dv /tmp/conf:/tmp/conf cea-check-in + ``` + + 此容器自动设置了 Cron 任务,将会在每天 6:30 触发执行签到,如需自定义触发时间,请 Fork 本仓库,修改 `docker/cea-cron`,并另行构建镜像与容器 + + ``` + sudo docker build -t cea-check-in Fork仓库的GitURL#main:docker sudo docker run -dv /tmp/conf:/tmp/conf cea-check-in ``` @@ -33,6 +38,7 @@
GitHub Actions > 考虑到 GitHub 近期对 Actions 监管(并且部分学校限制国外主机访问),本项目将禁用 Actions 部署 +
服务器部署