Part of my employer's practices is to avoid including css files in project repositories. Due to past issues with merge conflicts centering around CSS, its been decided to push SASS file changes only, and re-compile the stylesheets as necessary. We use Compass in house for compiling SASS to CSS.
What I'd like to do is implement a compass compile
execution upon a successful git pull
event. This seems easily done with a git pull
alias, but git hooks also exist. Finally, a third option is to have compass watch
run as an infinite process.
This last seems to be resource wasteful, as the production server is updated weekly at best. So what would be best practice in executing a compass compile
event after a successful git pull and how would it be done?