Drupal Development : Tools, Tips, and Tricks
-
Upload
gerald-villorente -
Category
Technology
-
view
112 -
download
2
Transcript of Drupal Development : Tools, Tips, and Tricks
{Tools, Tips, and Tricks}
Gerald Villorente, X-TeamDrupal, DevOps, Father
Setup?Share your recipe(s) to us.
ToolsKeep your tools simple and opensource.
Contribute as much as possible.
Vagrant
Drushhttp://bit.ly/1bYZbBi
XHPROFhttp://bit.ly/1JPxmah
Xdebug
tailf$ tailf /var/log/apache2/error.log
mytop
Grep$ grep -R 'test' sites/all/modules/custom
Geany +
Geanyratorhttps://github.com/geraldvillorente/geanyrator
gulp
PHP Codesniffer
Git
Tips
pre-commithttps://github.com/geraldvillorente/drupal-pre-commit
post-mergehttps://github.com/geraldvillorente/drupal-post-merge
Featureshttps://www.drupal.org/project/features
Develhttps://www.drupal.org/project/devel
FS Structure
Tricks
WSODwhite screen of death
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
// $Id: index.php,v 1.94 2007/12/26...
<?php
if ($_SERVER['HTTP_HOST']==='domain.name') {
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
}
Shutdown Handler http://bit.ly/1e6E0ih
Configuration Override
*settings*.php
$conf['preprocess_js'] = 1;$conf['preprocess_css'] = 1;$conf['cache'] = 1;
Theme Debug$conf['theme_debug'] = 1;
krumokrumo($vars); // Requires Devel module.
dpmdpm($vars); // Requires Devel module.
Questions?
Disclaimer
Photos used in this presentation are not mine.