Template based on drupal/recomended-project to create drupal projects to be deployed in Platformsh, also includes:
- Docker
- Docker Compose
- Chirripo Launcher
- Chirripo Proxy
This template uses chirripo as local environment.
Generate local settings files (run this command at root of the project):
./scripts/local-settings.shInstall the requiered dependencies:
composer install --ignore-platform-reqs
npm installRun the local environemnt (Chirripo Launcher should be installed in order to execute chirripo command globally):
chirripo startInstall the local site (run this command at root of the project):
./scripts/site-install.shEnable and configure the Chirripo Proxy.
Start the proxy:
chirripo proxy-upDownload database in the root of the project, then change the name of the file by db_site.sql.gz
Import the databese:
./scripts/install-from-db.shAdd the site URL in the settings/settings.local.php file:
$config['stage_file_proxy.settings']['origin'] = 'SITE_URL';You can change any variable defined in the .env file to make adjustments to the provided setup. You can edit the file named docker-compose.override.yml in the root of the project to make more advanced customizations.
Core is created as collection1.
Solr address is solr.
Path is /.
This project uses npm to run gulp tasks.
To run drupalcs, phplint and eslint tasks:
npm run testTo compile/transpile Javascript es6:
npm run build:jsTo run lighthouse test in front page:
npm run lighthouseTo run lighthouse in a custom url:
node_modules/.bin/lhci autorun --collect.url=CUSTOM_URL