Blog

Include environment-specific settings files on Pantheon

I was recently doing some work on a site hosted on Pantheon and came across an issue, for which part of the suggested fix was to ensure that the $base_url variable was explicitly defined within settings.php (this is also best practice on all Drupal sites).

The way that was recommended was by using a switch() function based on Pantheon's environment variable. For example:

Include CSS Fonts by Using a SASS each Loop

Using a file structure similar to this, organise your font files into directories, using the the font name for both the directory name and for the file names.

Updating Features and Adding Components Using Drush

If you use the Features module to manage your Drupal configuration, it can be time consuming to update features through the UI, especially if you are working on a remote server and need to keep downloading and uploading files.

How to fix Vagrant Loading the Wrong Virtual Machine

A few times recently, I've had instances where Vagrant seems to have forgotten which virtual machine it's supposed to load, probably due to renaming a project directory or the .vagrant directory being moved accidentally. Here are the steps that I took to fix this and point Vagrant back at the correct VM.

drush make drupalbristol

Here are my slides from this month's talk night at the Drupal Bristol user group.

git format-patch is your Friend

The Problem

As an active contributor to the Drupal project, I spend a lot of time working with other peoples’ modules and themes, and occassionally have to fix a bug or add some new functionality.

In the Drupal community, we use a patch based workflow where any changes that I make get exported to a file detailing the differences. The patch file (*.patch) is attached to an item in an issue queue on Drupal.org, applied by the maintainer to their local copy of the code and reviewed, and hopefully committed.

Thanks

This is just a quick post to thank everyone for their comments and congratulations after my previous post about joining the Drupal Association. I’m looking forward to my first day in the job tomorrow.

Drupal Association

Today was my last day working at Precedent. Next week, I’ll be starting my new job at the Drupal Association working on Drupal’s home – Drupal.org.

I was at Precedent for just over a year and had the opportunity to work on several Drupal projects from project leading to ad-hoc module and theme development, including my largest Drupal build to date.

DrupalCamp London 2014: What is Git Flow?

Here are my slides from my "What is Git Flow?" session at DrupalCamp London.

Take aways

The main take aways are:

DrupalCamp London 2014

It’s all booked, I’m going to be attending DrupalCamp London.

Pages

Subscribe to Blog