Skip to content

Commit

Permalink
Remove drupal root (#55)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
pingers authored Jan 27, 2019
1 parent 4bbcdad commit 6e3bdf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RoboFileBase.php
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit 6e3bdf5

Please sign in to comment.