Skip to content

Instantly share code, notes, and snippets.

@heyMP
Created March 21, 2014 15:40
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 heyMP/9689031 to your computer and use it in GitHub Desktop.
Save heyMP/9689031 to your computer and use it in GitHub Desktop.
buildir=`date +%m-%d-%Y-%I-%M`
echo $buildir
git clone git@bitbucket.org:phase2tech/psu.edu.git psu_profile
cd psu_profile
git checkout $1
cd ..
bash psu_profile/build.sh $buildir
cd $buildir
cp ../html/.htaccess ./
cd ..
rm html
ln -s $buildir html
cd html/profiles/psu_profile
drush updatedb -y
drush cc all
drush dis securepages -y
drush dis cosign -y
drush en stage_file_proxy -y
drush vset --yes cosign_enabled 0
drush vset --yes purge_enabled 0
drush vset --yes psu_newswires_send FALSE
drush vset --yes stage_file_proxy_origin http://www.psu.edu
drush vset --yes preprocess_css 0
drush vset --yes preprocess_js 0
drush fr-all -y
drush upwd admin --password='root' # Set the admin password as 'root'
drush cc all
drush uli #optional: log-in as admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment