Last active
August 29, 2015 14:27
-
-
Save camfindlay/4041dfd154e0d176cd81 to your computer and use it in GitHub Desktop.
Simple deploy script for SilverStripe
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
#/bin/sh | |
# Requires: git, composer, sspak, php | |
echo "Taking a backup" | |
d=$(date +%Y%m%d%H%M%S) | |
sspak save /home/bitnami/htdocs ~/backup/$d.sspak | |
cd ~/htdocs | |
git fetch | |
echo "Deploying production release branch" | |
git pull origin production | |
echo "Run composer and dev/build" | |
sudo composer selfupdate | |
composer install --no-dev --prefer-dist | |
php ./framework/cli-script.php dev/build flush=1 | |
echo "Deployment complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment