Skip to content

Commit

Permalink
Adding marketing site override capaibility using .env file to enable …
Browse files Browse the repository at this point in the history
…local debugging
  • Loading branch information
mikedikan committed May 3, 2017
1 parent 46929ff commit 2d26d92
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Change the value to the IP address of your machine/browser to enable debugging.
XDEBUG_IP_ADDRESS=127.0.0.1
# Provides local environment overrides if used. See docker.settings.private.php.example for details
DRUPAL_EXTRA_SETTINGS=/var/www/html/sites/default/docker.settings.private.php

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,8 @@ ENV/
.idea/

.dev/

# Docker
.docker-sync/
.env

8 changes: 7 additions & 1 deletion docker-compose-marketing-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ services:
- DB_NAME=edxmktg
- DB_PASSWORD=password
- DB_USER=edxmktg001
- DRUPAL_EXTRA_SETTINGS=/var/www/html/sites/default/docker.settings.php
- LMS_HOST=http://localhost:18000
- MEMCACHE_HOST=edx.devstack.memcached
# Used by PhpStorm to attach the debug connection
- PHP_IDE_CONFIG=serverName=edx.docker
# For the settings below, see .env.example to provide values (default is after the ':-')
# Provides local environment overrides. (PRIVATE_SETTINGS set in .env file)
- DRUPAL_EXTRA_SETTINGS=${DRUPAL_EXTRA_SETTINGS:-/var/www/html/sites/default/docker.settings.php}
# IP address of your machine to enable debugging (IP_ADDRESS set in .env file)
- XDEBUG_CONFIG=remote_host=${XDEBUG_IP_ADDRESS:-127.0.0.1}
image: edxops/edx-mktg:latest
ports:
- "8080:80"

0 comments on commit 2d26d92

Please sign in to comment.