Commit Graph

2 Commits

Author SHA1 Message Date
10278b55fb feat: add automatic git pull on homepage visit with rate limiting
Introduce a mechanism to automatically pull the latest changes from the git repository when the homepage is accessed. This ensures the application stays up-to-date without manual intervention. The feature includes a lock file (`/tmp/hustoj_git_pull.lock`) to prevent excessive pulls, limiting execution to at most once every 60 seconds. The git pull command runs in the background to avoid blocking the page load, with output logged to `/tmp/hustoj_git_pull.log`.
2026-03-13 15:16:29 +08:00
7b347c848a 2024-10-10 2024-10-10 12:56:56 +08:00