A Docker Drupal 8 deployment container Feb 11, 2016 I wrote a small example project that creates a deployable Drupal 8 container by copying the entire Drupal codebase into the Docker image.
Datadog php-fpm monitoring via nginx Jan 1, 2016 Datadog php-fpm monitoring via nginx ...
Useful bash one liners Oct 19, 2015 This is a list of some bash one liners I use on a daily basis during development and problem debugging. I made this list as a "you might not know this one yet" and will continue to update it every now and then. ...
Automated Drupal 7 deployments with Atlassian Bamboo Oct 14, 2015 In this blog post I write about how you can use Atlassian Bamboo to automatically deploy a Drupal 7 website. It covers creating a build plan, creating a deployment plan, setting up deployment environments and how these 3 work together to create an automatic Drupal deployment system. ...
A better alternative for using phpMyAdmin Oct 8, 2015 Almost every week I run into atleast one production site that has a phpMyAdmin installed in the document root of the site, or as a separate vhost on the server. While this used to be pretty required in 2005 to make changes to the database in production, now in 2015 we have better ways to do that. ...
Separating your project and environment settings in Drupal 7 Sep 24, 2015 For Drupal 7 sites it’s best that you split up your settings.php in 2 different files: settings.php and env.settings.php. The logic behind this is: settings.php contains all project-related settings, that are the same for all environments. env.settings.php contains all environment-related settings that are different for all enviroments. Given this logic, it’s safe to commit the settings.php to our git repository while keeping env.settings.php out of it. The env.settings.php is created manual when setting up an environment. ...
Puphpet - PHP Vagrant development images made easy Sep 8, 2015 Update 2016/07/06: You should probably not be using Vagrant (and Puphpet) anymore now that we live in the wonderful world of Docker containers. I will leave this blog post online for now, but take this information as ‘extremely outdated’. Puphpet is, beside a horrible word to type, a great tool to create specific Vagrant images that contain a very fine-tuned development stack for PHP development. The website generates puppet scripts that will provision a Vagrant image with your specific configuration. ...
Weird errors with Drupal themes containing a node_modules folder Aug 20, 2015 Using npm to install packages inside a Drupal theme or module folder can sometimes break your site. This blog post explains why this is happening. ...
Running rsync over ssh on a non-standard port Aug 18, 2015 It seems a lot of people don’t know how to rsync over ssh when the server is running on another port than 22. Here’s the correct command to do that, with the ssh service running on port 9999: rsync -a -v -e 'ssh -p 9999' user@host:/path/to/files .
Running individual cron commands in Drupal 7 Aug 3, 2015 It took me some searching, but it seems this is the best way to run a single cron command, in this case the scheduler cron job to publish and depublish content: * * * * * drush --root=$HOME/httpdocs eval "scheduler_cron();" It’s safe to run this every minute and leave the normal cron job to run every hour: 0 * * * * /usr/bin/flock -w 0 $HOME/.cron.lock drush --quiet --root=$HOME/httpdocs --uri=http://www.example.org cron In an upcoming blog post I’ll explain why running a full cron every minute is a bad idea. ...