Support Center

How to install a D8 website on a Composer managed structure

Last Updated: Jul 27, 2017 12:05AM EEST
This article includes instructions on how to install a D8 distribution on a Composer-managed structure.

Make sure that you read the article “Using Composer to manage Drupal site dependencies” at Drupal.org, in order to understand the requirements and procedures of managing a site with Composer:

https://www.drupal.org/node/2718229

The steps below refer to the Level+ theme, as an example, but they can be applied to any of our premium Drupal 8 theme distributions.

1.  Install Composer on your machine. For more information, visit https://getcomposer.org/doc/00-intro.md.
2.  Install a Composer-based site. We recommend the following Composer template: https://github.com/drupal-composer/drupal-project
3.  Add the modules the Level+ theme uses to your site by running composer require drupal/<modulename>. Note that you do not need to enable the modules included in the modules folder since they will be enabled by the database import that will take place later. For example, for the Level+ theme, these modules are:
  • entity_reference_revisions
  • paragraphs
  • superfish
4.  Copy all the contents of the theme folder of the Level+ distribution into your Composer-based installation.
5.  Copy the folders /sites/default/files/YYYY-MM  of the theme distribution into your Composer-based installation where YYYY-MM are date-related folder names. These folders contain images that are used on the demo website. For the Level+ theme, these folders are:
  • /sites/default/files/2016-03
  • /sites/default/files/2016-04
  • /sites/default/files/2016-05
  • /sites/default/files/2017-02
6. Copy the following folders of the theme distribution into your Composer-based installation. These folders contain images and other files that are used on the demo website:
  • /sites/default/files/pictures
  • /sites/default/files/tmp
7. Make sure the web server has Write permissions for all the /sites/default/files/ folder and all its subfolders.
8.  Import the database as described in the User Guide located in the ZIP file you downloaded.
9.  Run drush cr
10.  Run drush updb

By now, your installation should be completed. However, there is a chance that you will need to run the following command as an additional step:

drush entup

In case this article leaves any of your questions or concerns unanswered, please, feel welcome to email us or post a public question.

More than (just) Themes
http://www.morethanthemes.com/

Contact Us

support-agent@morethanthemes.com
http://assets1.desk.com/
false
morethanthemes
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete