Install drupal using drupal-composer
Step1:
Download Drupal8 and its dependencies using composer
>sudo composer create-project drupal-composer/drupal-project:~8.5 drupal85 --stability dev --no-interaction
This will install drush and drupal-console
Reference:
https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies
Step2:
Install Drupal using Drush
drupal85> sudo vendor/bin/drush site-install --db-url=mysql://username:password@host/dbname
For the record:
- 8.x-dev is already referring to the version of the project template, the --stability dev is redundant, has been removed in the mean time.
- drupal-composer/drupal-project doesn't come in a stable version. The only one available is dev.
- the project template flavor doesn't say anything on what will be required upon install. You need to check composer.json on version constraints for that.
- there are other project templates that do release specific versions. You wouldn't provide the version constraint to get the most current version. See the top 5 distributions available on d.o.
Download Drupal8 and its dependencies using composer
>sudo composer create-project drupal-composer/drupal-project:~8.5 drupal85 --stability dev --no-interaction
This will install drush and drupal-console
Reference:
https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies
Step2:
Install Drupal using Drush
drupal85> sudo vendor/bin/drush site-install --db-url=mysql://username:password@host/dbname
For the record:
- 8.x-dev is already referring to the version of the project template, the --stability dev is redundant, has been removed in the mean time.
- drupal-composer/drupal-project doesn't come in a stable version. The only one available is dev.
- the project template flavor doesn't say anything on what will be required upon install. You need to check composer.json on version constraints for that.
- there are other project templates that do release specific versions. You wouldn't provide the version constraint to get the most current version. See the top 5 distributions available on d.o.
Comments
Post a Comment