Skip to content

Commit 6e3bdf5

Browse files
authored
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.
1 parent 4bbcdad commit 6e3bdf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RoboFileBase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
/**
11-
* Class RoboFile.
11+
* Class RoboFileBase.
1212
*/
1313
abstract class RoboFileBase extends \Robo\Tasks {
1414

@@ -38,7 +38,7 @@ abstract class RoboFileBase extends \Robo\Tasks {
3838

3939
protected $web_server_user = 'www-data';
4040

41-
protected $application_root = "web";
41+
protected $application_root = "/code/web";
4242
protected $file_public_path = '/shared/public';
4343
protected $file_private_path = '/shared/private';
4444
protected $file_temporary_path = '/shared/tmp';
@@ -82,7 +82,7 @@ abstract class RoboFileBase extends \Robo\Tasks {
8282
* Initialize config variables and apply overrides.
8383
*/
8484
public function __construct() {
85-
$this->drush_cmd = "$this->drush_bin -r $this->application_root";
85+
$this->drush_cmd = $this->drush_bin;
8686
$this->sudo_cmd = posix_getuid() == 0 ? '' : 'sudo';
8787
$this->local_user = $this->getLocalUser();
8888

0 commit comments

Comments
 (0)