Skip to content

Instantly share code, notes, and snippets.

@jordanmerrick
Created April 11, 2013 10:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordanmerrick/5362370 to your computer and use it in GitHub Desktop.
Save jordanmerrick/5362370 to your computer and use it in GitHub Desktop.
Automatically update Pelican via Dropbox by using the following shell script as a cron running every minute. Just make sure your user can run "make" without needing sudo (causes a TTY error otherwise and fails).
#!/bin/bash
Respawn="/home/user/Dropbox/files/respawn"
if [ -f $Respawn ]
then
make html -C /var/www/yoursite;rm $Respawn
else
exit 0
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment