Tag: blog

February 20, 2010

Git is the database for a Blog

Recently all my static and dynamic sites are hosted via git, it just makes everything that much easier to deploy and rollback code. However usually with Blogs or CMS’s all my data is stored in mysql which is great until you need to move that data to another server like say your local environment, it involves a lot of data migration scripts.

Problem 1) How do you keep data in sync between environments

Problem 2) How do I let people edit content on the site but then repull the content locally?
Example : I’m running a site with a rails based CMS and there are non programmers updating text, now I want to see the text locally.


So I went about the process of finding git based plugins for a CMS like Radiant, none of them were that well supported. The next thing was finding git based ones that generated static files, problem with those was how do you store comments ? (Other then an outside service like disqus)

I found this awesome ruby based gem that supports blogs and webcontent and stores everything in git. Its called Shinmun Deployment was simple its a rack based app so just threw it into my apache configs with mod_passenger and bam its up. This was just a bit of a teaser blog, I want to go more into the details of how the git store works, and how feasible this would be to use on a full scale CMS. Lastly I would like to compare the performance of using it for simple mostly readonly sites to mysql.


February 4, 2010

Long road of starting this blog

SWEEEET!
Testing out this new blog engine, real post to come soon.
I’m a bit of a procrastinator so its good to get started and write little articles at a time ;) I’m a big hacker news guy check this link to get a feel http://news.ycombinator.com/item?id=1139185