Skip to content

Latest commit

 

History

History
107 lines (67 loc) · 2.21 KB

README.md

File metadata and controls

107 lines (67 loc) · 2.21 KB

PlatformSh Drupal Template

Template based on drupal/recomended-project to create drupal projects to be deployed in Platformsh, also includes:

Dependencies

Getting Started

Prepare for local development

This template uses chirripo as local environment.

Generate local settings files (run this command at root of the project):

./scripts/local-settings.sh

Install the requiered dependencies:

composer install --ignore-platform-reqs
npm install

Run the local environemnt (Chirripo Launcher should be installed in order to execute chirripo command globally):

chirripo start

Install the local site (run this command at root of the project):

./scripts/site-install.sh

Enable and configure the Chirripo Proxy.

Start the proxy:

chirripo proxy-up

Import the existing site

Download 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.sh

Add the site URL in the settings/settings.local.php file:

$config['stage_file_proxy.settings']['origin'] = 'SITE_URL';

Installed Stuff

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.

Solr

Core is created as collection1.

Solr address is solr.

Path is /.

Testing

This project uses npm to run gulp tasks.

To run drupalcs, phplint and eslint tasks:

npm run test

To compile/transpile Javascript es6:

npm run build:js

To run lighthouse test in front page:

npm run lighthouse

To run lighthouse in a custom url:

node_modules/.bin/lhci autorun --collect.url=CUSTOM_URL