Skip to content

Commit 2d26d92

Browse files
committed
Adding marketing site override capaibility using .env file to enable local debugging
1 parent 46929ff commit 2d26d92

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change the value to the IP address of your machine/browser to enable debugging.
2+
XDEBUG_IP_ADDRESS=127.0.0.1
3+
# Provides local environment overrides if used. See docker.settings.private.php.example for details
4+
DRUPAL_EXTRA_SETTINGS=/var/www/html/sites/default/docker.settings.private.php
5+

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,8 @@ ENV/
9292
.idea/
9393

9494
.dev/
95+
96+
# Docker
9597
.docker-sync/
98+
.env
99+

docker-compose-marketing-site.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@ services:
1616
- DB_NAME=edxmktg
1717
- DB_PASSWORD=password
1818
- DB_USER=edxmktg001
19-
- DRUPAL_EXTRA_SETTINGS=/var/www/html/sites/default/docker.settings.php
2019
- LMS_HOST=http://localhost:18000
2120
- MEMCACHE_HOST=edx.devstack.memcached
21+
# Used by PhpStorm to attach the debug connection
22+
- PHP_IDE_CONFIG=serverName=edx.docker
23+
# For the settings below, see .env.example to provide values (default is after the ':-')
24+
# Provides local environment overrides. (PRIVATE_SETTINGS set in .env file)
25+
- DRUPAL_EXTRA_SETTINGS=${DRUPAL_EXTRA_SETTINGS:-/var/www/html/sites/default/docker.settings.php}
26+
# IP address of your machine to enable debugging (IP_ADDRESS set in .env file)
27+
- XDEBUG_CONFIG=remote_host=${XDEBUG_IP_ADDRESS:-127.0.0.1}
2228
image: edxops/edx-mktg:latest
2329
ports:
2430
- "8080:80"

0 commit comments

Comments
 (0)