Skip to content

Commit

Permalink
fix: cron
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 23, 2024
1 parent 82376ca commit d428a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ cd $WORKDIR
# 重新启动 Docker Compose
/usr/local/bin/docker-compose up -d >> ./cron.log 2>&1

/usr/local/bin/docker-compose logs >> ./cron.log 2>&1

# 等待10分钟
sleep 10m
/usr/local/bin/docker-compose logs >> ./cron.log 2>&1

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

0 comments on commit d428a63

Please sign in to comment.