Technical information on this site may be out of date : no updates since 2015

Git log of live site vs master

July 16, 2012 , posted under git

One liner to grab a git log summarising what will change when you push teh next release.

For this to work you need to keep the deployed tag in VERSION.TXT

Read More…

Check Drupal for update hook changes

July 12, 2012 , posted under drupal drupal planet

In a busy team, with ongoing testing I often find we have a production version of the site, a version under test, and another version being actively developed.

In fact it can be less clear than this if release planning isn’t a priority, some teams simply churn out releases some of which get tested and eventually released.

This can lead to developers being unsure which update hooks have actually run on production (or will have run by the time the next release goes live).

In this case it’s important for somebody to manually review all install files that have been edited and check that we don’t end up releasing update hooks that have been edited after they have been run.

This script fires up a visual diff tool for the changed files.

Read More…

Log output of a script to a file

July 12, 2012 , posted under bash

Nice bit of bash fu I discovered today

Add this snippet to the top of scripts and the output of lines below will be tee’d to a logfile.

Handy for those scripts you always want a log of

Read More…

Jenkins Build artifacts - subdirectories

June 1, 2012 , posted under jenkins ci

It took me an unreasonable amount of guesswork to figure out how to get jenkins to archive files at multiple folder levels

In the end this line worked for me

Webdriver-framework/target/surefire-reports/*,Webdriver-framework/target/surefire-reports/**/*.png 

Read More…

Can't login to Drupal (404)

April 25, 2012 , posted under drupal apache mod-rewrite

I’ve been working on a project for a while on my main dev machine, but needed to run it on my laptop too.

Usually copying a site across is quick but this time I re-installed the OS too, everything went OK except for some reason I couldn’t log in to my drupal site.

Eventually I noticed that while the site appeared to be working, every page was being served with a 404 header.

Read More…