Skip to content

Instantly share code, notes, and snippets.

@mandelbro
Created April 11, 2014 18:31
Show Gist options
  • Save mandelbro/10490381 to your computer and use it in GitHub Desktop.
Save mandelbro/10490381 to your computer and use it in GitHub Desktop.
SPT Drush Cheatsheet
Get files from the dev server
sudo -E rsync --recursive --compress --times --rsh='ssh -l deploy' \
spt-stage.com:/var/www/deploy/current/sites/de.animax/files/ \
/var/www/deploy/current/sites/de.animax/files/ && chown -R vagrant:www-data /var/www/deploy/current/sites/de.animax/files && sudo chmod -R 777 /var/www/deploy/current/sites/de.animax/files && find /var/www/deploy/current/sites/de.animax/files -type d -exec sudo chmod 777 -R {} \;
All database commands
drush @de.animax sql-drop -y && drush cc drush && ssh -l chrismontes spt-stage.com drush @de.animax sql-dump | drush @de.animax sql-cli && drush @de.animax updb -y && drush @de.animax ucrt root --mail="chrismontes@about.me" --password="rewt" && drush @de.animax urol "super administrator" --name=root && drush @de.animax vset preprocess_css 0 --yes && drush @de.animax vset preprocess_js 0 --yes && drush @de.animax vset block_cache 0 --yes && drush @de.animax vset cache 0 --yes && drush @de.animax vset cache_content_flush_cache_block 0 --yes && drush @de.animax vset cache_content_flush_cache_page 0 --yes && drush @de.animax vset image_allow_insecure_derivatives 1 --yes && drush @de.animax vset error_level 2 --yes && drush @de.animax dis cdn -y && drush @de.animax dis spt_constant_contact -y && drush @de.animax en theme_swapper -y && drush @de.animax en hero -y && drush @de.animax cc all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment