-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drushrc.php in drupal image also with
uri
function based of `LAGOON…
…_ROUTE`
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
<?php | ||
/** | ||
* @file | ||
* lagoon global drushrc.php file | ||
* Lagoon global drushrc.php file | ||
* | ||
* This file tells drush about the lagoon environment | ||
*/ | ||
|
||
$options['root'] = '/app/' . getenv('WEBROOT'); | ||
### Drush Root | ||
$options['root'] = '/app/' . getenv('WEBROOT'); | ||
|
||
### Base URL so Drush knows on which URL the site runs (needed for cron, etc.) | ||
if (getenv('LAGOON_ROUTE')) { | ||
$options['uri'] = str_replace(['https://', 'http://'], ['', ''], getenv('LAGOON_ROUTE')); | ||
} |