“...I've been working since 2008 with Ruby / Ruby on Rails, love a bit of Elixir / Phoenix and learning Rust. I also poke through other people's code and make PRs for OpenSource Ruby projects that sometimes make it. Currently working for InPay who are based in Denmark...”

Rob Lacey
Senior Software Engineer, Copenhagen, Denmark

Lazy Rails deployment with git

Old blog posts I never published, except I have now #6

Not ideal but quick

root@li38-149:/var/www/thebevy/current# cd ../
root@li38-149:/var/www/thebevy# git clone /var/repos/thebevy.git current
Initialized empty Git repository in /var/www/thebevy/current/.git/
root@server:/var/repos# cat repo.git/hooks/post-receive
#!/bin/sh
GIT_WORK_TREE=/var/www/project/current git checkout -f
cd $GIT_WORK_TREE; touch tmp/restart.txt