Last active
August 29, 2017 16:07
-
-
Save elizoller/2412436c2148d694efc1 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
#!/bin/bash | |
echo We are going to deploy the toolkit sites now | |
if [ "$1" == "staging" ]; then | |
echo we are deploying to staging | |
ssh ezoller@liblab.neu.edu 'sudo su; cd /var/www/html/drstest; php composer.phar update' | |
elif [ "$1" == "prod" ]; then | |
echo we are deploying to prod | |
ssh sysbeekerz@dsgsites.neu.edu 'cd /mnt/wordpressdata/aproudpast/wp-content/plugins/drs-tk; echo a proud past; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/arader2/wp-content/plugins/drs-tk; echo arader; git pull; cd ../../themes/quest-child; git pull; echo black activism; cd /mnt/wordpressdata/BlackActivism/wp-content/plugins/drs-tk; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/bpsdeseg/wp-content/plugins/drs-tk; echo bps desegregation; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/catskills/wp-content/plugins/drs-tk; echo catskills; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/cerestoolkit/wp-content/plugins/drs-tk; echo toolkit; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/clms/wp-content/plugins/drs-tk; echo clms; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/crrj/wp-content/plugins/drs-tk; echo crrj; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/dmcstudios/wp-content/plugins/drs-tk; echo dmcstudios; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/ebbda/wp-content/plugins/drs-tk; echo ebbda; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/ecda/wp-content/plugins/drs-tk; echo ecda; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/freedom/wp-content/plugins/drs-tk; echo freedom house; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/holocaustawarenessarchives/wp-content/plugins/drs-tk; echo holocaust; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/kennedy/wp-content/plugins/drs-tk; echo kennedy; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/latinAmerArt/wp-content/plugins/drs-tk; echo latinjewisharts; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/latino2/wp-content/plugins/drs-tk; echo latino community history; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/nudp/wp-content/plugins/drs-tk; echo nu digital publishing; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/prayerbook/wp-content/plugins/drs-tk; echo prayer book; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/socialjustice/wp-content/plugins/drs-tk; echo social justice; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/speare/wp-content/plugins/drs-tk; echo speare; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/spectrum/wp-content/plugins/drs-tk; echo spectrum archive; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/thoreau/wp-content/plugins/drs-tk; echo thoreau journal; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/training/wp-content/plugins/drs-tk; echo training; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/uses/wp-content/plugins/drs-tk; echo uses; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/womensmarch/wp-content/plugins/drs-tk; echo womens march; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/phoenix/wp-content/plugins/drs-tk; echo phoenix; git pull; cd ../../themes/quest-child; git pull; cd /mnt/wordpressdata/voices/wp-content/plugins/drs-tk; echo voices; git pull; cd ../../themes/quest-child; git pull;' | |
else | |
echo no environment provided | |
fi | |
#run ./deploy.sh prod to deploy to prod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment