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