Latest posts.

Web Publishing with Git

So as I have been increasing movingly my life into Git version control it made sense to explore methods of publishing with Git.

Turns out to be quiet simple.

On the web server

Create a folder to host live site (live)

mkdir live

Create a folder to host git repository (repo)

mkdir repo

Create git bare repository in folder (repo)

cd repo
git init --bare

Within the hooks folder create a file called post-receive

nano hooks/post-receive

with the following text

#! /bin/sh
GIT_WORK_TREE="../live" git checkout -f

Now ensure the folder live is writable by the web server and that the file post-receive is executable. This hooks means that when the repository is committed to it will check out the files to the live web directory.

On the local box

Now on the box that the files exisit all you need to do is add a new remote (I tend to call it web but it can be called anything).

git remote add web *your-remote-url*

and then when you push the files will be made live.

 

 

Heading Home

So SLEO is finished time to head home….

Shared a ride with part of Sideband which was fun and got to see a bit more of Louisiana this time in the daylight.

Impressed with the amount of free wifi available in both New Orleans and Philadelphia airport in fact I am writing this at the departure gate for my transatlantic flight.

After having been to Philadelphia a few times now I finally succumbed and tried a Philly Cheese steak at Chickie and Pete’s was very good.

So american trip been a lot of fun but looking forward to getting home.

SLEO Final Day

So today I presented my paper

Notational Approaches for a Laptop Ensemble and appeared on a panel regarding Improvisation as Composition for Laptop Ensembles then got to see Sideband and the European Bridges Ensemble play which was great.

Also made time to see Mike the Tiger, the Shaquille O‘Neal statue (which involved walking across the campus which is huge) and ate alligator for the first time as well.