Sending deployment notifications to HipChat with Fabric

May 5, 2015 Development Deployment, Tools

For our latest projects we have been using Fabric to automate the deployment workflow of our applications. Since all developers are connected to HipChat (which is already integrated with the rest of our Atlassian stack) we thought it would be useful to write a notification in the project chat room in HipChat each time an application is being deployed.

Configuring this was surprisingly simple. You just need to pick the right tools.

Here's an example of what we were able to achieve:

Hip chat notifications fabric


Nginx path configuration for multiple Symfony 2 kernels

April 30, 2015 Development Symfony 2

A typical setup for our Symfony 2 projects lately has been to split up the application Kernel into separate parts.

In practice usually it boils down to this:

  • AdminKernel.php : Integrates and uses a large part of Sonata Admin and the entire Doctrine stack
  • ApiKernel.php : Only bootstraps the bare minimum to serve API requests, so no Twig, Sonata is loaded here
  • MediaKernel.php : Takes care of scaling and serving resized images. Internally Glide is used for this

On a pretty blog post was published about how you could organize this yourself in your own project:

But setting up a path-based configuration with Nginx can be a bit tricky sometimes. Here's a very basic example of an Nginx configuration that is working for us.