Skip to content

Commit

Permalink
fix: cron
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 22, 2024
1 parent 3f96acc commit feec05e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 128 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/cron-docker .yml

This file was deleted.

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ docker-compose logs -f

### 2.定时运行

```sh
chmod +x cron.sh

crontab -e
```

手动添加以下内容(功能是每天六点执行)

```sh
0 6 * * * /root/auto-read-liunxdo/cron.sh # 注意这是示例目录,要改为所在仓库目录的cron.sh(使用pwd查看所在目录)
```
90 changes: 0 additions & 90 deletions cron-Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions cron-docker-compose.yml

This file was deleted.

2 changes: 1 addition & 1 deletion cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ cd $WORKDIR
sleep 10m

# 停止 Docker Compose
/usr/local/bin/docker-compose down >> ./cron.log 2>&1
/usr/local/bin/docker-compose down --remove-orphans --volumes >> ./cron.log 2>&1

0 comments on commit feec05e

Please sign in to comment.