Last active
December 31, 2015 02:09
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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