Created
April 16, 2018 18:22
-
-
Save DavMorr/1a618a5beb7e12323e87b70e7f817c85 to your computer and use it in GitHub Desktop.
Revisions
-
DavMorr created this gist
Apr 16, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ # Install Drupal 8 with Composer There are several ways to install a Dupal 8 site instance with Composer, but the following includes the automated options that I prefer most. ```bash $ composer create-project drupal-composer/drupal-project:8.x-dev [[[ /path/to/site/root/parent ]]] --stability dev --no-interaction ``` [[[ /path/to/site/root/parent ]]] = the path to the parent directory above the web/docroot of the site. | feature | drupal-composer/drupal-project | |------------------------------|--------------------------------| | directory structure | web is subdir | | installer-paths config | yes | | repositories config | yes | | includes drush | yes | | includes drupal console | yes | References: * https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies?d8install=d8install#d8install * https://www.drupal.org/docs/user_guide/en/installation-chapter.html * https://www.drupal.org/docs/8/install/step-2-install-dependencies-with-composer