Managing Websites with Git

Posted by suvi under Other

Let’s say you have a local Git repository on your workstation
containing the source for a statically-generated website. You also
have the origin repository stored on a server somewhere that also
serves the website. The goal is to be able to edit files on the
workstation and have the website update automatically once changes are
pushed to the server.

For the sake of concreteness, I’ll describe the setup I currently use
for maintaining this site (let’s call it $SITENAME). I have a
content repository which contains (mostly) plain-text Markdown
formatted source files. There is also a Perl script which reads some
basic metadata from the Markdown files, applies Markdown and any other
required text filters, and applies templates to generate XHTML files
(lets call this step $BUILD).

Read more at http://jblevins.org/

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word