JC Web Concepts

Custom Web Developments

Setting Up Blogofile

| Comments

Blogofile is a simple blogging engine that brings something nice without the use of a database. I have been testing this out and I am starting to like this. I have even been thinking of replacing it with this. I am really enjoying this framework. Go ahead and watch this video below. After the video I will post the step by step instructions just in case you do not want to watch how to do it.



Here is the steps:

On the server

Install the python tool easy_install

1
2
sudo apt-get install
python-setuptools

Install blogofile

1
sudo easy_install blogofile

If you do not have Git

1
sudo apt-get install git

Go to where you want the git repo to be installed and do the following

1
2
3
mkdir blogofile.git
cd blogofile.git
git --bare init

Now configure the post-receive file

1
2
3
4
5
6
vim hooks/post-receive
unset GIT_DIR
cd /path/to/where/clone/repo/is
git pull
blogofile build
cp -a _site/* /var/www

Local computer

Now lets go to your local computer to where you want the source files and do the following

1
2
3
4
5
6
7
8
mkdir blogofile
cd blogofile
blogofile init simple_blog
git init
git add .
git commit -m "Some message"
git remote add origin username@yourservername:/path/to/repo/somerepo.git
git push origin master

Now we need to setup our exclude file so we do not commit the _site folder.

1
vim .git/info/exclude

Now add this to the bottom of the file

1
_site/* _site/

Now if you want to test out your blog you will do the following:

1
2
blogofile build
blogofile serve 8080

The 8080 can be any unused port you like. I hope this helped you as much as it has helped me.