Skip to content

Commit 236d1f0

Browse files
author
Lenahan Michael
committed
Issue drupal-composer#64: Add README instructions on how to change document root directory name
1 parent bdaa8fd commit 236d1f0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,22 @@ To prevent this you can add this code to specify the PHP version you want to use
143143
}
144144
},
145145
```
146+
147+
### How do I specify a different name for the document root '/web' directory?
148+
149+
To use a different web root directory, e.g. ```/docroot``` instead of ```/web```:
150+
151+
1. Create the project without installing it using the --no-install option. e.g.:
152+
153+
```
154+
composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install
155+
```
156+
157+
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/```
158+
159+
3. Finish the install using the command in the project directory:
160+
161+
```
162+
composer install
163+
```
164+

0 commit comments

Comments
 (0)