Created
November 29, 2012 15:20
-
-
Save bayleedev/4169748 to your computer and use it in GitHub Desktop.
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
# Clear the cache | |
alias .hb.remote.cc="ssh mdxdev '.hb.cc'" | |
function .hb.cc() { | |
# Directory | |
.hb | |
# CSS | |
if [ $(ls app/webroot/css/compiled/ | wc -l) -gt 0 ] | |
then | |
echo Ridding CSS | |
cd app/webroot/css/compiled/ && rm -f *.css | |
.hb | |
fi | |
# JS | |
if [ $(ls app/webroot/js/compiled/ | wc -l) -gt 0 ] | |
then | |
echo Ridding JS | |
cd app/webroot/js/compiled/ && rm -f *.js | |
.hb | |
fi | |
# Mongo | |
vagrant ssh -c "mongo vitals --eval 'printjson(db.wp_cache.drop())'" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment