Voting starts in March for the Drupal Association Board election.
In a multi-environment setup (e.g. prod, test, dev, local) there are some modules that you'd like to always be enabled or disabled on certain environments. Each time you sync a database down though you have to re-enable/disable the same modules. Worse, you get lazy and keep development modules enabled on production.
Habitat provides settings to enable or disable certain modules on each environment (habitat). Just set a variable with e.g. $conf['habitat'] = 'local'; in your settings.php file (the actual variable to use there is configurable for your current workflow). The disabling/enabling modules is done on hook_init.
With habitat you may set that on prod certain UI modules are always disabled (views_ui, field_ui, even habitat_ui itself), to prevent untrained site builders from overriding Features.
On local you may set that they are always enabled and also enable development modules like devel or stage_file_proxy.
You can also use environment-specific Features modules to ensure settings (e.g. css aggregation, error settings) are different between environments. If you have certain settings you change as part of a launch checklist, you can automate these with a prod-only Features module.
Bear includes starter features for Habitat in its Bear Habitat modules.
Habitat also plays well with Fetcher, our drush tool for building and cloning sites to different environments.
Habitat makes most sense in a Features-based workflow.
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Developer, Utility
- Reported installs: 1,438 sites currently report using this module. View usage statistics.
- Downloads: 8,130
- Last modified: December 2, 2014
- Stable releases are covered by the security advisory policy.
Look for the shield icon below.