Command Line

Every once in a while you run into a problem that forces you to either dig in and learn more than you really had the intention of learning, or return the client’s down payment. I ran into such a situation recently with an odd Drupal multisite installation.

Drupal handles multisite installs by routing to the folder in the sites directory which has the name of the site in question. So test.pixelcever.com would run off of the settings.php file located in sites/test.pixelclever.com.

This tutorial starts with a situation that can easily occur if you are taking over an existing website from a different developer, and for one reason or another you need to move the site off of the old svn account and on to another one that you or the client control.

There are obviously many ways to achieve this goal, but this is the method that I prefer.

To start open a terminal prompt (or a cywin prompt if you are using Windows) and navigate to the working copy on you local computer. Once in the correct folder type the following command and hit enter:

The longer I have my mac the more things I find that drastically simplify my life as a Drupal developer. Now for fairness sake I should admit that there are still some things about mac that annoy me (namely Finder which is in many ways inferior to the windows explorer), but that is another story all together. Drush, the command line tool for Drupal is one of those many little things that make me very happy to have broken free from the slimy grasp of Bill Gates and his minions.