From 6e3bdf5032c057679a0a58a541acb102e00f4991 Mon Sep 17 00:00:00 2001 From: Michael Priest Date: Sun, 27 Jan 2019 14:42:18 +1030 Subject: [PATCH] Remove drupal root (#55) * Remove the relative path from drush commands because drush 9 now only supports absolute paths and auto drupal root discovery. * Other commands still need to know about the web root. --- RoboFileBase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RoboFileBase.php b/RoboFileBase.php index 0e1c3eb..b35618a 100644 --- a/RoboFileBase.php +++ b/RoboFileBase.php @@ -8,7 +8,7 @@ */ /** - * Class RoboFile. + * Class RoboFileBase. */ abstract class RoboFileBase extends \Robo\Tasks { @@ -38,7 +38,7 @@ abstract class RoboFileBase extends \Robo\Tasks { protected $web_server_user = 'www-data'; - protected $application_root = "web"; + protected $application_root = "/code/web"; protected $file_public_path = '/shared/public'; protected $file_private_path = '/shared/private'; protected $file_temporary_path = '/shared/tmp'; @@ -82,7 +82,7 @@ abstract class RoboFileBase extends \Robo\Tasks { * Initialize config variables and apply overrides. */ public function __construct() { - $this->drush_cmd = "$this->drush_bin -r $this->application_root"; + $this->drush_cmd = $this->drush_bin; $this->sudo_cmd = posix_getuid() == 0 ? '' : 'sudo'; $this->local_user = $this->getLocalUser();