Skip to content

A handy bash script for building a drupal site with drush

Notifications You must be signed in to change notification settings

oxyc/Drupal-Build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Drupal Build Script

This is a small shell script to easily automate a Drupal site build primarily using Drush. Site deployment, public key transfer etc. is planned for later.

What it actually does

-m | make

  1. Uses Drush Make to download all desired modules and translations
  2. Uses Drush to install Drupal with your uid1 of choice
  3. Creates a database on localhost (As this is localhost root is passwordless, change if necessary).
  4. Opens the browser with a one-time change password link to your local site.

-d | deploy

  1. Creates a drush alias file for dev and live servers
  2. Sends your public key over ssh to the remote host
  3. Install drush on remote host
  4. Create a database and a user on remote host
  5. Transfer the Drupal directory as well as the database

-s | sync

  1. Use drush rsync functionality to sync directories and database

Setup

  1. Install Drush and Drush Make
  2. Setup Drush Make to your liking
  3. Create a drushrc.php file with an alias location variable
  4. Configure the bash script to your liking, if you want your downloaded modules to be installed add them in the $MODULES_x variables. Some basic info about the dev box is required.
  5. Add this folder to your $PATH variable
  6. drupal -m

About

A handy bash script for building a drupal site with drush

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages