Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 52fa95a

Browse files
committed
Add a docs note about drupal_build_composer not always being optimal [ci skip]
1 parent 20b15c6 commit 52fa95a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/deployment/composer.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Drupal VM is configured to use `composer create-project` to build a Drupal 8 codebase by default but supports building Drupal from a custom `composer.json` file as well.
22

3+
_Note that if you already have a project built using a `composer.json` file you should instead add [Drupal VM as a dependency](composer-dependency.md) of your project. The method described below will make it somewhat difficult to manage your `composer.json` together with Drupal VM as the file will be copied from `drupal_composer_path` into `drupal_composer_install_dir` as a secondary `composer.json`._
4+
35
1. Copy `example.drupal.composer.json` to `drupal.composer.json` and modify it to your liking.
46
2. Use the Composer build system by setting `drupal_build_composer: true` in your `config.yml` (make sure `drupal_build_makefile` and `build_composer_project` are set to `false`).
57
3. Configure `drupal_core_path` to point to the webroot directory: `drupal_core_path: {{ drupal_composer_install_dir }}/docroot`

0 commit comments

Comments
 (0)