A beginning web developer works directly on a live site. After bringing down the live site a few times or being embarrassed when unfinished work appears on the live site, the developer learns to use two environments: development and production.
A prerequisite to the following is having a .drush directory set up and stored in a repository; see the previous section for details.
Defining a Default Drush Aliases File
The .drush/defaults.aliases.drushrc.php file contains an alias called prod which will be the parent of all the servers we will define. Its contents:
You can check whether git is already installed by typing
If you get output showing you your git version you are all set. If you get "command not found," git is not installed.
We are following the gitflow method where Master is stable and production ready. We did not start out this way but are migrating quickly to adopting this method with some alterations.
Maintenance flow .
Suitcase is a mobile responsive Drupal 7 theme for Iowa State University websites, part of the IASTATE Theme project.
- Optimized for Luggage, but also works fine for a stock Drupal 7 installation
- Works beautifully on mobile devices
- Thoroughly tested to be in compliance with WCAG AA and Section 508 web accessibility standards.
Suitcase is maintained collaboratively and is available on GitHub.
Download and Installation
Suitcase Layout Examples
Suitcase supports a variety of page layouts. Possibilities include drag-and-drop arrangement of content into responsive columns and rows, and featuring announcements in full-width hero banners or slideshows.
Sometimes you have Drupal in a git repository and you want to use a single submodule from Luggage. For example, you might have a site on which you want only the People feature.
Here is how to add a submodule to your git repository.
In English, you are telling your git repository that contains the code for your website where the git submodule is, so that when you type
git submodule update --init
it will automatically pull in the submodule.
First, you add the submodule by hand:
Working with Luggage requires Drush and Git to be installed.