Skip to content

Commit 7d6d272

Browse files
author
Kent Richards
committed
Add explanation of environmental variables for using DrupalKernel bridge.
1 parent c02ed88 commit 7d6d272

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,18 @@ The included `\PHPPM\Bridges\DrupalKernel` bridge extends `\PHPPM\Bridges\HttpKe
5252

5353
1. Install as described above.
5454

55-
2. Include the environment variables and the `--bridge` option in the php-pm start command:
55+
2. Include the environment variables and the `--bridge` option in the php-pm start command.
56+
57+
Supported environment variables:
58+
* **SCRIPT_NAME:** '/index.php' to emulate a standard setup where web requests execute Drupal's `index.php` script.
59+
* **SERVER_NAME:** Your site's server / domain name. If you're using trusted host settings (`$settings['trusted_host_patterns']` in `settings.php`), this must match one of the trusted hosts.
60+
* **SERVER_ADDRESS:** IP address of the server.
61+
* **DOCUMENT_ROOT:** Absolute filepath of the web root directory.
5662

5763
Example:
5864

5965
```bash
6066
SCRIPT_NAME=/index.php \
61-
REQUEST_METHOD=GET \
6267
SERVER_NAME=localhost \
6368
SERVER_ADDRESS=127.0.0.1 \
6469
DOCUMENT_ROOT=/var/www/html \

0 commit comments

Comments
 (0)