User login

Drush notes from Moshe's lightning talk

Another module by Arto Bendiken
install Drush module

then

command line:
php ./drush.php help

Boost actually comes with some Drush commands, but they're out of date

If you are a lazy developer [and most of us are]
you will like drush

php ./drush.php pm install boost

(I'm connected to the groups.drupal.org site which is not the best place to demo stuff, but I think this is safe)

It went and found the latest release from update status, and went and installed it into

you don't just install new modules, you can update old modules

(apparently you can run it from anywhere)

php ./drush/drush.php pm refresh
refreshing update module status
php ./drush/drush.php pm update

you can say no
and then just update the module you want.

php ./drush/drush.php sql query "select uid from users limit 10"
this issues queries to your sql
when you're at the command line, you can do this with mysql
but Drush knows your login information, so you don't have to look it up.

This works with multisite really well
php ./drush/drush.php -l http://groupsbeta.drupal.org sql query "select uid from users limit 10"

Next command, SQL load

This is how I do my database backups on groups.drupal.org

I just pull down their database

Or, if we haven't gone live yet, I might take

easy way to do wholesale database upgrades with load

If you don't say, it will go for sites/all modules
if you

modules/contributed - no
According to Moshe, specific sites/example.com/modules will overwrite sites/all/modules

There's no support for reverting. I don't think update status knows about them [older versions of a module].

If you have your setup in subversion, you're OK.

Is there a verbose mode? Yes.

php ./drush.php -v pm install relatedcontent

yeah, it actually checks the md5 checksum

Resolution

Searched words: 
Drupal deployment from the command line

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.