Skip to content

Commit

Permalink
fix: cron trigger time
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed Oct 28, 2021
1 parent 4c40fd7 commit edaf8e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/cea-cron
Original file line number Diff line number Diff line change
@@ -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.
10 changes: 8 additions & 2 deletions docs/deploy.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<details><summary>Docker 部署</summary>

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` 来加载用户)
Expand All @@ -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
```

Expand All @@ -33,6 +38,7 @@
<details><summary>GitHub Actions</summary>

> 考虑到 GitHub 近期对 Actions 监管(并且部分学校限制国外主机访问),本项目将禁用 Actions 部署
</details>

<details><summary>服务器部署</summary>
Expand Down

0 comments on commit edaf8e7

Please sign in to comment.