./scripts/install-sitesTo remove docker-compose, run
./scripts/undocker-sitescd ereolenEdit web/sites/default/settings.local.php and insert:
<?php
$databases['default']['default'] = [
'database' => getenv('DATABASE_DATABASE') ?: 'db',
'username' => getenv('DATABASE_USERNAME') ?: 'db',
'password' => getenv('DATABASE_PASSWORD') ?: 'db',
'host' => getenv('DATABASE_HOST') ?: 'mariadb',
'port' => getenv('DATABASE_PORT') ?: '',
'driver' => getenv('DATABASE_DRIVER') ?: 'mysql',
'prefix' => '',
];../scripts/checkout develop developdocker-compose up -d../scripts/updateEdit .env.local:
REMOTE_HOST=ereolen.dk
REMOTE_DB_DUMP_CMD='drush --root=/data/www/ereolen_dk/htdocs --uri=ereolen.dk sql-dump --structure-tables-list="cache,cache_*,history,search_*,sessions,watchdog"'
REMOTE_PATH='/data/www/ereolen_dk/htdocs/sites/default/files'
REMOTE_EXCLUDE=(advagg_* css ctools js languages resize styles ting)
LOCAL_PATH='web/sites/default/files'Install itkdev-docker-compose from
https://github.com/aakb/itkdev-docker
and run
itkdev-docker-compose sync:dbSame procedure as documented in Building
themes, but with a slightly
different path (/app/web/ rather than /app/):
docker-compose run --rm node yarn --cwd /app/web/sites/all/themes/orwell install
docker-compose run --rm node yarn --cwd /app/web/sites/all/themes/orwell builddocker-compose run --rm node yarn --cwd /app/web/sites/all/themes/wille install
docker-compose run --rm node yarn --cwd /app/web/sites/all/themes/wille buildWith the Symfony binary
We need PHP 7.0 and want to keep this old shit to itself. Hence, we install it inside an isolated Homebrew area (cf. Multiple installations).
Run
scripts/php7.0-installto install PHP 7.0.
Start the show:
cd ereolen
docker-compose up -d
../scripts/php7.0-discover # Make PHP 7.0 discoverable to symfony
../scripts/symfony serveMust be run from inside a site folder (e.g. ereolen/web):
../../scripts/drush
../../scripts/phpcs
../../scripts/phpcbf
../../scripts/symfonyThe same story, but in the ereolengo folder.