Last active
August 29, 2015 14:00
-
-
Save rjmackay/11244505 to your computer and use it in GitHub Desktop.
v3.ushahididev.com Deploy Script
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/bash | |
cd /srv/www/ushahidiv3/public_html/ | |
printf "~ Pulling from git\n\n" | |
git fetch | |
git checkout . | |
git reset --hard origin/master | |
#git status | |
printf "\n~ Syncing Submodules\n\n" | |
git submodule sync | |
printf "\n~ Updating Submodules\n\n" | |
git submodule update --init --recursive | |
git submodule status | |
printf "\n~ Running Composer Updates\n\n" | |
php ../composer.phar self-update | |
php ../composer.phar update --no-dev | |
printf "\n~ Running Bower Updates\n\n" | |
/usr/bin/bower install | |
printf "\n~ Running Migrations\n\n" | |
./minion --task=migrations:run | |
printf "\n~ Running bundle install\n\n" | |
bundle install --path vendor/bundle | |
printf "\n~ Running npm update and grunt compass\n\n" | |
npm update | |
grunt compass | |
printf "\n~ DONE!\n\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment