https://github.com/oxyc/drupal-build
A handy bash script for building a drupal site with drush
https://github.com/oxyc/drupal-build
Last synced: 12 months ago
JSON representation
A handy bash script for building a drupal site with drush
- Host: GitHub
- URL: https://github.com/oxyc/drupal-build
- Owner: oxyc
- Created: 2011-09-04T16:54:29.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-09-25T17:07:26.000Z (over 14 years ago)
- Last Synced: 2025-04-04T21:45:52.157Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 93.8 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
2. Create a drushrc.php file with an alias location variable
3. 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.
4. Add this folder to your $PATH variable
5. drupal -m
[Drush]: http://www.drush.ws
[Drush Make]: http://drupal.org/project/drush_make