About
- Creates a new Drupal project
- Uses the dgb (see http://github.com/scor/dgb) file structure
- Downloads Drupal core and contributed modules based on a drush makefile
- Creates a .gitignore file
- Creates development and production features
- Creates an initial subtheme
- Installs Drupal based on an install profile
- Creates general feature with all permissions and basic variables included
- Initializes a new git repo
Requirements
Installation
After cloning this git repository, be sure to run from inside the drush-git repo:
git submodule init
git submodule update
bundle install
Run
Run from the parent directory of the new Drupal project.
ruby [path/to/this/repo/]/drupal setup [project_name]
Run with sudo if you are encountering gem or drush download errors:
sudo ruby [path/to/this/repo/]/drupal setup [project_name]
Example
ruby drush-git/drupal setup new_website
Optional Flags
- gitignore
- db_name: Defaults to project_name
Optional Follow Up
- Create a github.com repo
- Add collaborators
- Set remote git repo to github.com and push
- Set up Masquerade user and move Masquerade links from Navigation menu to Management menu
Troubleshooting
...'gem_original_require': no such file to load -- bundler/setup (LoadError)
You don't have bundler installed. Try running:
gem install bundler