drush
Drush is a shell-based application used to control, manipulate, and administer Drupal sites. On the surface, drush is an excellent tool for updating site modules, but here is a more comprehensive list of features for drush:
- Quick status report (get Drupal site version)
- Run cron
- Clear caches
- Export site databases (SQL dump)
- Update site code
- Update Drupal database (run "update.php")
- Get Info & Download Any Module & Themes
- Enable/Disable/Uninstall Modules & Thems
- Simulate updates/commands
- Sync environments (perfect for DEV-STAGE-PRODUCTION)
- plus modules offer drush add-ons, like Module Builder, Devel, Hacked!, plus many more.
You can see a list of some Drush commands available.
View the official list of modules that have Drush add-on commands available.
2009 Drush MVP Award goes to "Drush Make"
Drush make: best way of staying up to date with an install profile under development
Here is my current workflow:
1) download an install profile (i'm trying out openpublic) from git.
2) modify the distro.make (its called something else in OP) so you can build from your local repo.
3) drush make to a folder called build with the --working-copy flag
4) install drupal, do work, make changes to code as well as openpublic.make (for module changes and such)
Now, here comes the crappy part...
5) rebuild with drush make to take advantages of the new modules you added to the openpublic.make file
6) copy in your sites folder to the newly build folder
7) continue working
Drush Make : Pulling in a local profile archive??
Hi All,
I am sure this is simple but I can't seem to crack it..
I have created a custom installation profile that includes a .make file.. I have archived the profile so now have a tar.gz file..
I now want to create a complete distribution including the custom profile..
My make file to create the build is as below.. (obviously it doesn't work because I don't know the correct syntax for pulling in a local file)
#
core = 7.x
api = 2
projects[] = drupal
projects[custom][type] = profile
projects[custom][download][type] = file
drush sql-sync error: Lost connection to MySQL server at 'reading initial communication packet'
I've got a new Managed VPS, and am trying to get a Drupal site put there with drush rsync and sql-sync. However, I'm getting the following error from drush sql-sync, following the 2nd time you enter a password:
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Does anyone know what this could be related to?
Installing Drush using Git
I recently put together a short screencast demonstrating how to install drush on a local development machine (running Ubuntu 11.10) using Git. It shows some of the benefits to installing drush this way (easy updates, version management etc).
Link to video: http://earthviaradio.wordpress.com/2011/12/08/installing-drush-using-git/
Is anyone else using Git in this way for drush or drush_make installs?
backend developer | Area Pro Realty
Evaluate our existing Drupal multi-site auto deployment process (shared themes and modules), to determine why it is no longer automatically deploying new sites.
Brief description of the site deployment process;
-
Broker completes Agent Details form and selects category "Submit for Approval". An email is generated notifing the Tech Center of the new record.
-
Tech center reviews Agent Details form, corrections made if needed and status changed to "Approved for Deployment".
Drush and Godaddy
I know what your're thinking:
[cringe]Godaddy[cringe]
I'll be changing hosting away from them once my contract ends but anyway...this is a little ditty on how to get Drush to work on godaddy(very hacky solution ATM). I wrote this because godaddy has PHP4 in the $PATH. I needed to get drush to run with PHP5.
Using drush rsync with passwords
Is there any mechanism to use drush with a hosting service that does not support the use of public key authentication?
thanks
paul
Q? Which Drush for version 6.22?
Fellow Drupallers;
Just upgrading to 6.22 and am having issues with Drush. I believe I'm running Drush version 4.5-dev (according to drush --version).
My update status report shows "current drush version not supported"!
From those of you using 6.x what Drush version should I install?
Thanks all -
Staging to Production without overwriting content
When I sync from my Staging system to the Production system, content created on the production system (such as a new node) is lost.
What are methods for using drush rsync and drush sql-sync to avoid overwriting content?
Is there some way to specify to not overwrite nodes/comments created/modified by me? (As I'm the only user on the Staging system.) Any other processes/methods?
What is the most up-to-date deb repository for drush
Hi all,
I'm looking for an up-to-date drush repository for my ubuntu installation? I did found somes, but they're not handling the last version.
Witch one are you using?
Thanks!
Drupal Developer (client-facing) | SystemSeed
SystemSeed is on the lookout for talented Drupal developers. Is SystemSeed right for you? If you can answer yes to most of the below then you may be ideally suited to working with us.
MAC - drush error after migrated to another account (wont run)
Hi there!
Im running a Mac OS X Lion and I migrated my user account to a new one, the old one was very slow and I had a hard time figuring out what was happening there. So I migrated to a new user account, updated MAMP and and tried to run drush. MAMP is going good, everything works (mysql is on, php is on, my sites on drupal run as well).
Now, everytime i run drush i get this in my terminal
"Warning: require_once(/usr/bin/includes/environment.inc): failed to open stream: No such file or directory in /usr/bin/drush.php on line 26
upgrading drupal versions
Hello, eternal noob here. i have been reading about drush, just havent tried to use it yet. question. does drush make it easier to upgrade from say drupal 7.1 to 7.3? i am not clear on that. thanks.
Getting drush to work on my MacBook Pro...
I had the pleasure of being introduced to drush at this past meetup, and wanted to provide some detail that might serve someone else.
I run a MacBook Pro, and MAMP as a local development server.
I followed Mike's recommendation of using a path alias to the actual drush directory, so that it would be accessible from Terminal:
I placed the uncompressed drush directory in:
/Users/ben/Applications/
and ran the alias script, following Mike's recommended course of action:
"3. (Optional, but recommended:) To ease the use of drush,
Anyone experience segmentation fault with Drush under *nix?
Occasionally I've seen this error but lately it occurs EVERY time I try to run Drush. If anyone was able to overcome this would they please share? You can imaging what's progress is like when up against the brick-wall!
A new drush command to generate apache VirtualHost configurations
Hello all,
Just wanted to let you know that I've pushed a new drush command to this github repository.
What it does is generating a VirtualHost section for the Apache configuration, which allows you to easily add new virtual hosts to your system.
It saves me some time, hope you'll find it useful too.
Thanks for your attention, looking forward for comments and suggestions.
Does anyone know about a good tutorial for remote aliases?
Hi there,
I understand that you can use drush installed locally, on a remote server without the need to use ssh, through an alias. Is this correct? Do you people know about a good tutorial out there? I have a bluehost account and they ask for some ID faxed to them, I do not live in the US and i dislike the idea of having to scan an send an ID. Not happening.
Thanx in advance!
Sync enabled modules between sites
So in the process of updating my development site, a new module has been installed. One of my previously installed modules has since become dependent on this new module.
So to get this on to my live/staging site, I use version control to update so that it has the same code as my dev site.
Now I have an issue, I need to enable that new module.
I could simply enable the module manually in drush, but there could be several modules, and I may accidentally miss one.
A Drush Tutorial that's not a webcast
First of all, apologies if this ends up cross-posted.
In case anyone is interested, I've been looking for ages for a nice, simple introduction to Drush that doesn't involve downloading an enormous video file, i.e. something that would work in Instapaper. Eventually I gave up and wrote my own, and I've been using it to educate colleagues who haven't quite understood what Drush can do yet.
You can find the article at: http://www.opc.com.au/web-development/introduction-drush-drupal-power-tool
Comments and feedback welcome - especially if something is misleading or incorrect.
Drush extras for secure and gzipped SQL dump
Hello,
I've just set up a github repo with a couple of drush extra commands for provinding secure and compressed SQL dumps.
The secure version uses openssl for encrypting the compressed dump. I thought this might be of use to someone, and who knows, the drush team can find it interesting enough to be included in the official release ;)
Thanks,
António








