Automatic redmine changeset fetch, pull interval of 5 minuts
This commit is contained in:
Juan Ferrer 2022-10-28 21:07:53 +02:00
parent 9237322e5b
commit 692eec5f44
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
*/10 * * * * /var/local/redmine/scripts/update-repositories.sh
*/5 * * * * /var/local/redmine/scripts/update-repositories.sh

View File

@ -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