manaticr/platformsh-drupal-template
Composer 安装命令:
composer create-project manaticr/platformsh-drupal-template
包简介
Project template for Drupal 9 projects with a relocated document
README 文档
README
Template based on drupal/recomended-project to create drupal projects to be deployed in Platformsh, also includes:
Dependencies
- Docker
- Docker Compose
- Chirripo Launcher
- Chirripo Proxy
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
统计信息
- 总下载量: 118
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2020-09-01