Skip to content

Smartforce/sb-drush-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sb-drush-workflow

Sample drush files for use with Springboard projects.

INSTALLATION

  1. Make sure you select the correct branch for the version of Drupal you have
  2. Copy the drush folder to your sites/all directory
  3. Modify as needed
  4. Run "drush cache-clear drush" to load the new aliases
  5. Use Drush like a pro

You can also copy the contents of the settings directory to your sites/default directory and use the default.local.settings.php to create the relevant local.settings.php file.

DATABASE SCRUBBING

When generating a database dump, you can use the structure tables flag to remove the data. This is the preferred method for getting a database.

  • common : this empties the cache, history, devel, and search tables
  • springboard : this empties the springboard, ubercart, and webform data tables (MINIMAL)
  • common+springboard : this does all of the above (BEST)

drush sql-dump --structure-tables-key=common+springboard --result-file=~/PROJECT-DATE-db.sql --gzip

note: this will fail if you have tables listed in the array that are not in your database. Just modify it as needed.

DRUSH ALIASES

  • drush hist : nicely formatted git history (with fancy branching)
  • drush nc : list of non core modules
  • drush nc-on : list of enabled non core modules
  • drush nc-dis : disable all non core modules
  • drush wipe : clear all caches
  • drush offline : put site in maintenance mode
  • drush online : take site out of maintenance mode
  • drush get-db : grab a CLEAN copy of the DB using the scrubbing above

REQUIREMENTS

This setup relies on Drush 6+. If you happen to have an earlier version, then everything should work ok, but you can't use wildcards in the structure tables array (ie. you need to list each individual table).

About

Sample drush and settings workflow setup for use with Springboard projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published