Skip to content

Instantly share code, notes, and snippets.

@caseyamcl
Created May 3, 2012 19:06
Show Gist options
  • Save caseyamcl/2588296 to your computer and use it in GitHub Desktop.
Save caseyamcl/2588296 to your computer and use it in GitHub Desktop.
Casey's Drupal Development Kickstarter (ensure drush 5.x+ is installed first)
; ----------------
; Generated makefile from http://drushmake.me
; Permanent URL: http://drushmake.me/file.php?token=005dea072d80
; ----------------
;
; This is a working makefile - try it! Any line starting with a `;` is a comment.
; Core version
; ------------
; Each makefile should begin by declaring the core version of Drupal that all
; projects should be compatible with.
core = 7.x
; API version
; ------------
; Every makefile needs to declare its Drush Make API version. This version of
; drush make uses API version `2`.
api = 2
; Core project
; ------------
; In order for your makefile to generate a full Drupal site, you must include
; a core project. This is usually Drupal core, but you can also specify
; alternative core projects like Pressflow. Note that makefiles included with
; install profiles *should not* include a core project.
; Drupal 7.x. Requires the `core` property to be set to 7.x.
projects[drupal][version] = 7
; Modules
; --------
; Themes
; --------
; Libraries
; ---------
; No libraries were included
#!/bin/bash
#
# Casey's Drupal Development Installation
# ======================================================================
# Prerequisites:
# - drush 5.x+ (see http://drupal.org/project/drush)
# - wget
# - mysql-server (root password must be blank!)
#
# Run this script in the directory *ABOVE* where you want to put Drupal:
# wget -qO- https://raw.github.com/gist/2588296/run_script | sh
# ======================================================================
#Download the drushmkaefile
wget -qO- https://raw.github.com/gist/2588296/drush_makefile > /tmp/drushmakefile
#Make the Site
drush make --yes /tmp/drushmakefile ./drupal
#Change directories
cd drupal
#Install the Site
drush site-install --db-url="mysql://root@localhost:3306/drupal" --account-pass='pass1234' --clean-url --db-su='root' --db-su-pw='' --site-name='Drupal-Development' --yes standard
#Enable modules
drush pm-download --yes views, ctools, devel, entity, views_bulk_operations, biblio, coder
drush pm-enable --yes --resolve-dependencies views, views_bulk_operations, ctools, devel, entity, biblio, coder
#Remove tempfile
rm /tmp/drushmakefile
#Clear Cache
drush cc all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment