Skip to content

Instantly share code, notes, and snippets.

@janssens
Last active June 26, 2017 10:12
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 janssens/dfc6198ad2697304d8899a444ea77228 to your computer and use it in GitHub Desktop.
Save janssens/dfc6198ad2697304d8899a444ea77228 to your computer and use it in GitHub Desktop.
dploy new release from git
#!/bin/bash
cd /root/git/$1/
git pull
rsync --exclude='/.git' --filter='dir-merge,- .gitignore' -r --delete-after /root/git/$1/ /var/www/$1/
mv /var/www/$1/app/etc/local.xml.$1 /var/www/$1/app/etc/local.xml
php /root/script/cc.php $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment