Giter Site home page Giter Site logo

sb-drush-workflow's Introduction

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).

sb-drush-workflow's People

Contributors

rlnorthcutt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.