Deployment notes

Deployment on Cloudways

Attempting to deploy this on Cloudways has thrown up a problem due to the way their system works.

We have SSH access but only to the document root directory. We can run Composer and Git there, but we cannot access below the docroot.

The default Drupal installation provided by Cloudways has the 'vendor' and 'composer.json/lock' files inside the document root directory to allow deployment.

We need to re-factor our repository so that:

  1. The base of the repo is the document root

  2. composer.json/.lock are located in the document root and install to 'vendor' also located in the document root.

https://github.com/drupal/drupal/tree/8.9.x is an example of the layout we're seeking.

Last updated