Skip to content

Commit

Permalink
add config_sync dir so drush works
Browse files Browse the repository at this point in the history
  • Loading branch information
finnef committed Jul 4, 2018
1 parent c5e98c6 commit 6017a95
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ services:
environment:
# Enable PHPStorm XDebug with CLI.
PHP_IDE_CONFIG: "serverName=appserver"
# Set the Mink webdriver args.
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", null, "http:https://host.docker.internal:4444/wd/hub"]'
database:
# Add a static db port for easy bookmarking and access through SQL clients.
portforward: 33006
Expand Down
9 changes: 7 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ else
cd web
composer install

# Upgrade PHPUnit to work with PHP 7, add drush.
composer require --update-with-dependencies "phpunit/phpunit ^6.0" "drush/drush"
# Upgrade PHPUnit to work with PHP 7, add drush and selenium
composer require --update-with-dependencies "phpunit/phpunit ^6.0" "drush/drush" "joomla-projects/selenium-server-standalone"

echo "Installing default site."
# Create file dirs.
cd $LANDO_MOUNT
mkdir -p -m 777 web/sites/default/files
mkdir -p -m 777 web/sites/simpletest
mkdir -p -m 777 files/private
mkdir -p -m 777 files/tmp
mkdir -p -m 777 files/sync

# Symlink the settings and public file dir.
if [ ! -L "$LANDO_MOUNT/web/sites/default/settings.php" ]; then
Expand All @@ -29,6 +31,9 @@ else
if [ ! -L "$LANDO_MOUNT/files/public" ]; then
ln -s $LANDO_APP_ROOT_BIND/web/sites/default/files $LANDO_MOUNT/files/public
fi
if [ ! -L "$LANDO_MOUNT/files/simpletest" ]; then
ln -s $LANDO_APP_ROOT_BIND/web/sites/simpletest $LANDO_MOUNT/files/simpletest
fi

cd $LANDO_MOUNT/web
drush site-install
Expand Down
2 changes: 2 additions & 0 deletions sites.default.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,8 @@
# include $app_root . '/' . $site_path . '/settings.local.php';
# }

$config_directories[CONFIG_SYNC_DIRECTORY] = $app_root . '../files/sync';

if (getenv('LANDO') === 'ON') {
$lando_info = json_decode(getenv('LANDO_INFO'), TRUE);
$databases['default']['default'] = [
Expand Down

0 comments on commit 6017a95

Please sign in to comment.