Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

netsensei/Rum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUM README

About

Installation

How to use Rum

Where does Rum store my data?

Known issues

Resources

Roadmap

Thanks

About

Author

Matthias "Netsensei" Vandermaesen
matthias@colada.be
http://www.colada.be

What is Rum?

Rum is a set of Drush scripts that makes a Drupal developers' life easier. It allows you to quickly set up and tear down Drupal websites with as few commands as possible. Rum takes away the pain of tediously managing virtual hosts, databases,...

The aim is to keep your development setup as clean as a whistle and allowing you to set up a new Drupal site quickly.

Why Rum?

Although a myriad of general solutions already exists, the idea behind Rum is to do one thing only: quickly setting up and tearing down Drupal websites.

Rum is also a learning experience. I wanted to learn more about Drush and I wanted to really dive into OOP and design patterns.

WARNING: INSTALL AT YOUR OWN RISK! THIS IS STILL AN UNFINISHED PROJECT. Rum will interact (add/remove) with your installation, so things might break severely.

Features

  • Manage your Drupal instances (Setup a new virtual host, a database and a host name)
  • Set up Drupal vanilla
  • Install a project from a GIT or Subversion repository
  • Platform independent (MAMP, Ubuntu,...)

Dependencies

  • Drush
  • L/MAMP stack
  • Git and/or Subversion command line tools

Installation

  • Clone the stable release of Rum in your .drush folder:

      cd .drush
      git clone -b 1.x git://github.com/netsensei/Rum.git
    

On Mac OS X, you'll find your .drush folder at /Users/username/

  • Open up your command line tool and run

      drush help | grep rum
    

If Drush doesn't pick up the Rum commands, clear your Drush cache.

	drush cache-clear drush
  • Configure your .drushrc file with the rum specific options contained in the drushrc.php file in the installation base. Rum will tell you when it is missing a crucial configuration parameter.

More information about the drushrc file can be found in the example.drushrc.php file.

  • one suggestion is to copy/paste .drush/Rum/drushrc.php to .drush/drushrc.php and to add your specific option to that file. Symbolic linking the file didn't seem to do the trick and it could be a potential security risk when pushing updates to the Rum repo. Pulling in updates may also override users' options.

How to use Rum

Vanilla install

  • Install a vanilla Drupal project called foobar

      drush rc vanilla foobar
    

Repository install

  • Install a project Foobar from a CVS repository (local or remote)

      drush rc repository foobar
    

Both commands will create a domain name called hostname.foobar. Rum will talk you through the installation and provide a URL once the process is completed. With a vanilla flavored Rum install, you may need to manually finish the installation in the browser.

Note: when using a Subversion repository you may want to checkout the just the trunk and not the entire repo. For instance, if you have a repository at http://my.subversion-server.com/awesome-repo, you should give the following URL:

	http://my.subversion-server.com/awseom-repo/trunk

This way you'll check any folders in the root of your repository instead of the trunk folder which will not comply with the way Rum expects your repo to be setup.

Repository install example

A complete walkthrough for a (GIT) repository based Drupal 7 installation using Rum is available in the Rum Repo Example README.

Removing an installation

  • Remove a project (vhost, folders, link, database,...):

      drush rd foobar
    

Repository removal example

A complete walkthrough for removing a Rum based installation using Rum is available in the Rum Repo Example README.

Where does Rum store my data?

There is a whole range of ways to configure a L/MAMP stack. Some prefer to put their document roots in /var/www, others link to a different directory. Same goes for managing database dumps, vhost configurations,...

Rum isn't designed to cater in a flexible way with different setups. The primary goal is to go for a few setups and get things up quick and simple.

Rum will create a workspace directory. All your projects will be stored in this directory. Each project resides in its own project directory

Each project directory ideally has these two directories: a web directory (i.e. www) and a database directory (i.e. db) The first will act as a document root to your vhost configuration, the second contains all your database dumps.

For each virtual host, Rum will create a separate file in the vhost configuration directory.

For each project, Rum will create a single database and generate a settings file which will connect it to the project.

It's possible to change the defaults in your .drushrc.php configuration and or pass specific changes as options from the command line. Refer to this command for more information:

	drush rc help

Known issues

Issues are tracked in the GitHub issue tracker for Rum.

Resources

Roadmap

Rum relies on the Drush API. There are few things on the wishlist

  • Integrate better with Drush native error handling through exceptions since this opens up the opportunity to use drush' rollback hooks.
  • Better use of native Drush API functions. I've written some stuff which was already in the API.
  • Create projects from an installation profile
  • CVS: Include support for Subversion
  • Web: Include support for NGinX
  • DB: Include support for pgsql

Thanks

These people helped tremendously in making Rum better.

Jim Faes
jimfaes@gmail.com

Jurgen "Sjugge" Verhasselt
sjugge@heretiksambrosia.net
http://heretiksambrosia.net

Toon Ketels
http://www.braahm.be/

About

Deployment tools for drush

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages