Nguyen Tien Si
GO1


Image source: https://www.drupal.org/node/580026

//Depend on JIRA key
//Example: SBH project
//If project is small and just has one features, should be:
modules/
contrib/
custom/
features/
sbhf/ //main features
//If project is big and have many features (like GC, Aduro), should be:
modules/
contrib/
custom/
features/
sbh_core/ //core features
sbh_blog/ //sub featuresCode: Dev -> Stage -> Prod
Database: Prod -> Stage -> Dev
Avoid export menu link (dynamic content) into the features
// Dev site
features[menu_links][] = menu-header-menu_help:node/10
//node/10 point to Help page
// Stage site
features[menu_links][] = menu-header-menu_help:node/10
//node/10 point to other page
// Prod site
features[menu_links][] = menu-header-menu_help:node/10
//node/10 point to other page
// So when deploy should be fail if don't have same database.Avoid export development module into features
// Don't need development module on prod.
dependencies[] = develAvoid change value of field option in field config
// Dev
foo|FOO
// Stage
FOO|FOO
// Should be fail when revertingDo not export solr server to features
// Dev site
URI: http://example-d.com/solr/drupal
Host: example.com
Protocol: http
Port: 80
Path: /solr/drupal
// Stage site
URI: https://example-s.com/solr/drupal
Host: example-s.com
Protocol: https
Port: 443
Path: /solr/drupal
User: user
Pass: [secret]