Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.
/ gitblog.py Public archive

Delivers Git-based websites via apache2/mod_python

License

Notifications You must be signed in to change notification settings

pecharmin/gitblog.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitblob.py

This program renders websites from a bare git repository. It's a handler for mod_python in the Apache2 webserver.

Author: Armin Pech <github (at) arminpech (dot) de>

Copyright & License

Description

You manage your website content hierachically in a local git repository based on normal files and directories:

/
|
`-- /about
|   |
|   `-- /about/me
|   `-- /about/imprint
`-- /blog
    |
    `-- /blog/2017-01-01-happy-new-year

After content modifications you push your local repository content to a remote base repository on your webserver. The gitblog.py handler serves client requests from the base repo. The URI of the request matches the file and directory structure of your repository content.

Client --> Apache --> mod_python --> gitblog.py <--.
                                                   |
Desktop --> Local Repo --> Server Bare Repo -------´

Features

  • History and permanent links based on git commits/references

    /blog/1?ref=93faf2001885d7292c1d757bd21da9b10e786b42

    /blog/1?ref=mytag1

  • Multiple branches

    /blog/2?ref=HEAD

    /blog/2?ref=master

    /blog/2?ref=preview

  • Filesystem symlink generates HTTP redirects

Setup

Whould you like to setup gitblog for your site? See INSTALL

About

Delivers Git-based websites via apache2/mod_python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages