... the blog post must be omitted today.
Statocles is the foundation of the new augensalat.de website.
This is a setup from the very beginning. It may serve as a cooking recipe while the examples show how I installed this blog.
Install a local Perl
This is not really necessary. It's for those who claim they cannot install some Perl software, because their system Perl is too old, because they are not root or because of any other problem-fu.
You will need perlbrew. If you don't have it already go to the perlbrew website and follow the install instructions.
Now build your local Perl:
me@local:~> perlbrew install perl-5.20.3 --as perl-5.20.3-nothreads me@local:~> perlbrew switch perl-5.20.3-nothreads
me@local:~> curl -L http://cpanmin.us | perl - App::cpanminus
me@local:~> cpanm Statocles
Create a Git repository for www.augensalat.de
Basically one needs to create a central repository on the server where the website is hosted.
me@local:~> ssh git@remote git@remote:~> git init --bare repositories/www.augensalat.de.git
I use Gitolite to manage my Git repositories.
me@local:~> cd gitolite-admin me@local:~> git pull me@local:~> vim conf/gitolite.conf ... add www.augensalat.de repo ... me@local:~> git commit -a -m 'Add repo www.augensalat.de' me@local:~> git push me@local:~> cd
Create a post-receive hook for the remote repository
me@local:~> ssh git@remote git@remote:~> cat <<EOF >repositories/www.augensalat.de.git/hooks/post-receive #!/bin/sh umask 002 GIT_WORK_TREE=/srv/www/vhosts/www.augensalat.de/htdocs git checkout -f EOF git@remote:~> chmod +x repositories/www.augensalat.de.git/hooks/post-receive
Get a clone of the website repository and start the Statocles project:
me@local:~> git clone email@example.com:www.augensalat.de me@local:~> statocles create www.augensalat.de ... walk through the setup dialogue ...
At this point let's see if everything is set up nicely.
First check the default setup:
me@local:~> cd www.augensalat.de me@local:~> git status me@local:~> less .gitignore me@local:~> less site.yml me@local:~> less blog/2015/09/22/first-post/index.markdown me@local:~> statocles daemon
Finally deploy the default site and check the result:
me@local:~> statocles deploy me@local:~> ssh git@remote git@remote:~> ls /srv/www/vhosts/www.augensalat.de/htdocs blog index.html page robots.txt sitemap.xml site.yml theme
Now configure your preferred web server to serve the generated content.
Piece of cake!
Welcome To My Blog ... and Greetings from Sunny Greece
Ahh! Finally holiday. Blue sky, warm days and mild evenings at the Greek coast of Chalkidiki.
Well, while the first days we have had great weather, the last two days were not so sunny... In fact we had thunderstorms for two nights and it was raining cats and dogs.
Opportunity to spend time on my neglected website...
And while I'm at it, why not start a blog?
So here is it - or will be... hopefully. Nothing fancy. Just to write down all the little adventures and learnings that we normally forget too quickly.
The next post will be about setting up a website like this with Statocles.