Skip to content
CMS for Cloud.
CSS JavaScript Ruby HTML
Pull request Compare This branch is 1 commit ahead of lokka:master.
Failed to load latest commit information.
bin Replace rack-flash with sinatra-flash
db Remove spec_seeds
i18n Add default markup in admin/site/edit
lib Merge pull request #186 from morygonzalez/support-coffee-script
public Escape comment author's name
tmp update sinatra to 1.2.3.
.gitignore add database.yml to .gitignore
Gemfile dm-transactions change to master branch
Gemfile.lock dm-transactions change to master branch
LICENSE added i18n support and p0t theme. Fix link to lokka
VERSION Changed the sytle sheet format from CSS to SCSS. Remove ruby 1.8.7 support
database.default.yml Remove dsn that it is only for heroku
init.rb Remove ruby 1.8.7 support
lokka.gemspec Fix link to lokka
lokka.icns added Icon for Mac.
lokka.ico Renamed pyha to lokka.


CMS written in Ruby for cloud computing.


  • Performs in the cloud environment such as Google App Engine and Heroku as well as Windows, Mac, and Linux.
  • Designed with reference to WordPress for WordPress users to easily understand.
  • Easy installation
  • Easy to create a theme for designers.
  • A clear plug-in API for Rubyists


$ git clone git://
$ cd lokka
$ bundle install --without=production:test
$ bundle exec rake db:setup
$ bundle exec rackup

View at: http://localhost:9292/

Deploy to Heroku

$ git clone git://
$ cd lokka
$ heroku create
$ git push heroku master
$ heroku addons:add heroku-postgresql:dev
$ heroku pg:info | head -n1 | awk '{print $2}' | xargs heroku pg:promote
$ heroku rake db:setup
$ heroku open

or just copy and paste

\curl -L | bash -s

to your terminal


$ rake spec

How to make a theme

Make a directory for theme in public/theme and you need to create entries.erb and entry.erb at least. (erb, haml and slim is available.)

Index page


!!! XML
    %title Example
    %h1= @site.title
    - @entries.each do |entry|
      %h2= entry.title
      .body= entry.body

Individual page


!!! XML
    %title Example
    %h1= @site.title
    %h2= @entry.title
    .body= @entry.body

How to make a plugin

Lokka Plugin is subset of Sinatra Extension. but Lokka had a specific rules of nomenclature. If you need display "Hello, World" when access to "/hello", Write a following.


module Lokka::Hello
  def self.registerd(app)
    app.get '/hello' do


Copyright (c) 2010 Masaki Komagata. See LICENSE for details.

Something went wrong with that request. Please try again.