Andrew Tarry

Boring thoughts on software development

  • Provisioning Vagrant with Chef

    Vagrant is a fantastic tool for managing virtual machines and, for developers, it offers a great way to build you environments. One of my favourite features of Vagrant is that you can provision the VM with a variety of tools including Puppet, Chef and shell scripts. In this tutorial I’m going to show you how to provision a VM with a chef-solo and Berkshelf. The goal is a simple development environment for PHP that can...
    Read more...

  • Symfony Default Composer Scripts

    Have you ever wanted to know what all the composer scripts in the default Symfony composer.json do? No? I didn’t think so but nonetheless, lets have a look at them. As of Symfony 2.5 there are 5 commands in the default composer.json and most of them are inside the Sensio DistributionBundle Script Handler class. buildBootstrap The ScriptHandler::buildBootstrap command is required to build the app/bootstrap.php.cache file. The bootstrap file is neccissary for Symfony to correctly start....
    Read more...

  • Quick Tip - Full Screen on OSX Yosemite

    When you upgrade you mac from Mavericks to Yosemite you’ll notice all the new styling changes that have come with it. One thing that can be a little confusing is that the behaviour of the green button in applications has changed. In previous versions it was used to enlarge the application window but in Yosemite it will cause the application to enter full screen mode. If fullscreen mode is not what you are looking for...
    Read more...

  • Symfony 2 on Heroku

    Since Heroku started supporting PHP it has become a valuable hosting option for Symfony apps. It offers a nice middle ground between the lack of control you get with shared hosting and the workload of hosting the site yourself with AWS or Rackspace. Heroku offers managed hosting so it’s less for you to worry about but it offers the flexibility changing PHP extensions and using plugins. It is not as flexible as a service like...
    Read more...

  • Apache 2.4 Configuration Changes

    With the release of the Apache 2.4 server you may have noticed a few changes in the way that virtual hosts are managed. These can trip you up if you are not careful about the way you configure your site. This article will guide you on currently hosting a PHP site on Ubuntu. Other implementations will differ but hopefully this will point you in the right direction. Site.conf file If you look in the /etc/apache2/sites-available...
    Read more...