-
-
Save bhubbard/a0e3d1de4142b063ed460d255260d398 to your computer and use it in GitHub Desktop.
Codeship Wordpress deployment
This file contains hidden or 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
TARGET=/path/to/theme | |
USER=deployuser | |
SERVER=ip.or.domain | |
PORT=port | |
cd ~/clone/ | |
find . -type f -iname \*.coffee -delete | |
find . -type f -iname \*.scss -delete | |
find . -type f -iname \*.less -delete | |
find . -type f -iname \*.scssc -delete | |
find . -name .sass-cache -type d -exec rm -r {} + | |
rsync -avz -e "ssh -p $PORT" ~/clone/ $USER@$SERVER:TARGET | |
ssh $USER@$SERVER -p $PORT "cd $TARGET && rm -rf tmp + && rm -rf .git" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment