Skip to content

Commit

Permalink
Added final crontab scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Oct 16, 2012
1 parent b9f7fa4 commit cf2d921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deployment.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ extends =
parts +=
crontab

# Run the github poller now and then
# Run the github poller every 5 minutes
[crontab]
recipe = z3c.recipe.usercrontab
times = @reboot
times = */5 * * * *
command = cd ${buildout:directory} && ./doc-holliday.sh

4 changes: 1 addition & 3 deletions doc-holliday.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
#


changed=0

deploy_target=/tmp/test-deploy

# http://stackoverflow.com/questions/3258243/git-check-if-pull-needed
git pull | grep -q -v 'Already up-to-date.' && changed=1

if [[ $changed ]] ; then
if [[ ! -z "$changed" ]] ; then
# Rebuild the docs from the scratch
bin/buildout
make clean html
Expand Down

0 comments on commit cf2d921

Please sign in to comment.