diff --git a/redmine/crontab b/redmine/crontab index c001c8b..db302f5 100644 --- a/redmine/crontab +++ b/redmine/crontab @@ -1 +1 @@ -*/10 * * * * /var/local/redmine/scripts/update-repositories.sh +*/5 * * * * /var/local/redmine/scripts/update-repositories.sh diff --git a/redmine/update-repositories.sh b/redmine/update-repositories.sh index 8c400f2..662ca7b 100755 --- a/redmine/update-repositories.sh +++ b/redmine/update-repositories.sh @@ -8,3 +8,5 @@ for REPO_DIR in "$GIT_SYNC_FOLDER/"*; do (cd "$REPO_DIR" && git remote update --prune) >> /dev/null fi done + +/usr/src/redmine/bin/rails runner "Repository.fetch_changesets" -e production