From 600193cd7c9ad36f03c80a2b11b55ca7a8407854 Mon Sep 17 00:00:00 2001 From: Theodotos Andreou Date: Sun, 14 Jan 2018 15:19:55 +0200 Subject: [PATCH] Created Setting up Drush (markdown) --- Setting-up-Drush.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Setting-up-Drush.md diff --git a/Setting-up-Drush.md b/Setting-up-Drush.md new file mode 100644 index 0000000..5c32611 --- /dev/null +++ b/Setting-up-Drush.md @@ -0,0 +1,42 @@ +In this guide we are installing Drush, the command line interface of Drupal. According the the developers: + +> Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt. + +## Prerequisites + +* A [[Drupal setup|Setting up Drupal 7]] + +## Install dependencies + +Run the commands as the *ubuntu* user: + +``` +$ sudo apt -y install curl unzip +$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer +``` + +## Install Drush + +Switch to the *webadmin* user: + +``` +$ sudo su - webadmin +``` + +Install Drush: + +``` +$ cd cms/ +$ composer require drush/drush +``` + +You can run *drush* to check the status of your Drupal install, with: + +``` +$ ./vendor/bin/drush status +``` + +References +---------- +* http://docs.drush.org/en/master/ +* http://www.bravo-kernel.com/2014/08/how-to-install-composer-on-debian/ \ No newline at end of file