Skip to content

Commit

Permalink
Issue drupal-composer#64: Add README instructions on how to change do…
Browse files Browse the repository at this point in the history
…cument root directory name
  • Loading branch information
Lenahan Michael committed Sep 30, 2019
1 parent bdaa8fd commit 236d1f0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,22 @@ To prevent this you can add this code to specify the PHP version you want to use
}
},
```

### How do I specify a different name for the document root '/web' directory?

To use a different web root directory, e.g. ```/docroot``` instead of ```/web```:

1. Create the project without installing it using the --no-install option. e.g.:

```
composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install
```

2. ```cd``` into the project directory and edit the ```"installer-paths"``` section in the ```composer.json``` file. Replace the ```web/``` paths with the web root you want, e.g. ```docroot/```

3. Finish the install using the command in the project directory:

```
composer install
```

0 comments on commit 236d1f0

Please sign in to comment.