The goal of this tutorial is to build a personalized version of your own drupal 7 site, which will consist of your selected modules, themes and libraries, Once you have completed this material you will have gained an understanding of
Drupal 7 profiles.
For you to follow these instructions you will need the followng setup on your machine
Local environment set up ie MAMP for mac
Drush, Drush Make installed.
And be comfortable in using the command prompt and GIT scm.
Clone the git respository
git clone http://git.drupal.org/project/drupal.git mysite
Setup the core, contrib and personal git branches
git checkout 7.0
git checkout -b drupal7core --track origin/7.x
git checkout -b mysitecontrib
git checkout -b mysitepersonal
Ensure you are in the contrib branch before running the drush make & site installation scripts
git checkout mysitecontrib
Create a profile using these instructions as a reference http://drupal.org/node/1022020
Create a mystyles.make file, details are described here http://drupal.org/node/642116.
And here's the mysite.make and to save space on Vimeo I'll paste the contents straight onto the mysite.make
; This file was auto-generated by drush_make
core = 7.x
api = 2
projects[admin_menu][version] = "3.x-dev"
projects[advanced_help][version] = "1.x-dev"
projects[colortheme][version] = "1.0"
projects[ctools][version] = "1.x-dev"
projects[captcha][version] = "1.x-dev"
projects[devel][version] = "1.x-dev"
projects[diff][version] = "1.x-dev"
projects[entity][version] = "1.x-dev"
projects[entitycache][version] = "1.0"
projects[features][version] = "1.x-dev"
projects[git_deploy][version] = "1.x-dev"
projects[insert][version] = "1.1"
projects[libraries][version] = "2.x-dev"
projects[references][version] = "2.x-dev"
projects[pathauto][version] = "1.x-dev"
projects[sky][version] = "1.x-dev"
projects[rootcandy][version] = "1.x-dev"
Additionally you can add these configurations to the bottom of the mytest.into file, which will make the modules enabled on the new site.
dependencies = admin_menu
dependencies = colortheme
dependencies = ctools
dependencies = devel
dependencies = diff
dependencies = entitycache
dependencies = features
dependencies = insert
dependencies = libraries
dependencies = pathauto
Installing the site in three steps
Run the drush make script from inside the drupal directory, we will not be downloading core since that already happened with the git clone and setting the --prepare-install argument will set us up nicely for the drush site installation command, run drush help make to see the details.
% drush make --no-core --contrib-destination=/profiles/mysite --prepare-install mysite.make
Prepare the database using PHPMyAdmin or similar.
Execute the drush site installation script.
% drush si mysite --db-url=mysql://test:test@localhost/mysite.test --account-name=test --account-pass=test --site-name=mysite.mysite --email@example.com
Ta Da! You should be up and running with all your modules, libraries and themes installed.
DOG is currently been developed and I'll try it out once it is stable enough.
Dries Buytaert has stated that one of his key initiates will be configuration management so we can expect significant further development in this area.
The recommend follow on tutorial will be migrating your site across to the live server using drush site aliases http://drupal7.tutorial/drupal-7/tutorials/deployment/local-remote-sites-using-drush-site-aliases