Skip to content

Instantly share code, notes, and snippets.

@Greg-Boggs
Last active December 31, 2015 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Greg-Boggs/7919301 to your computer and use it in GitHub Desktop.
Save Greg-Boggs/7919301 to your computer and use it in GitHub Desktop.
Automate deployment and sass compile with a few bash commands in a crontab. Change "example" to your project name.
# Git Pull and Feature Revert All Every Minute Make sure to edit "example" to go to your web root.
* * * * * cd /home/tng/dev.example && /usr/bin/git pull > /home/tng/dev.example.log; /usr/bin/drush -y features-revert-all > /home/tng/dev.example.log 2>&1
# Sass Recompile Every Minute
* * * * * /bin/bash -c ". /home/tng/.bash_profile > /home/tng/dev.example.log 2>&1; cd /home/tng/dev.example/sites/all/themes/custom/example && /home/tng/.rvm/gems/ruby-1.9.3-p374/bin/bundle exec compass compile > /home/tng/dev.example.log 2>&1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment