./scripts/install-sites
To remove docker-compose
, run
./scripts/undocker-sites
cd ereolen
Edit 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 develop
docker-compose up -d
../scripts/update
Edit .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:db
Same 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 build
docker-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 build
With 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-install
to 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 serve
Must be run from inside a site folder (e.g. ereolen/web
):
../../scripts/drush
../../scripts/phpcs
../../scripts/phpcbf
../../scripts/symfony
The same story, but in the ereolengo
folder.