Bash Script to install a new Drupal 8 site using Drush for File Based Workflow
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Bash Script to install a new Drupal 8 site using Drush or Composer for File Based Workflow in a little over Three Minutes.


This project came from an attempt to develop a File Based Workflow for Drupal 8. There are various methods out there, many using Composer. Unfortunately Composer is very memory hungry and would not run in our Hosting service with limited memory. We had to find a way to install a Drupal 8 site for File Based Workflow, but the method requires a particular order which we discovered by trial and error. So lots of Install, Rip Down and Start Again. Very time comsuming!! We have found that installing Drupal 8 using Composer on the Local site, and install using Drush on the Dev and Production sites, then using Git to push/pull via a remote repo works well This is why we developed this script which will Install a Drupal 8 Site to the location of your choice, and if the site exists it will replace it with a fresh one, and in only a little over three minutes.


This is for Linux Only. We have not considered Windows. It will probably work on a Mac, but we have not tested it. You will need to have already installed Drush, Composer and Git globally. You will also need a Virtual Host setup to match your site.


Place the script and the base_files folder in a location of your choice eg ~/bin/drupal Edit the file to put the correct variables for your location and site in place Then make sure the script is executable

chmod +x

and execute like so:


Wait a little ......