public
Fork of adamwiggins/scanty
Description: Flexible no-layout blog platform based on Adam Wiggins' Scanty
Homepage: http://nassau.gilesb.com
Clone URL: git://github.com/gilesbowkett/scanty.git
gilesbowkett (author)
Wed Jun 24 23:50:07 -0700 2009
commit  e54ea28c67999f072138ccdfce7239b8aab9518e
tree    d1652cb5ffc3ed8a2cd1833bd32acf4f457e4fb4
parent  d364b8258910cf16aac1bc7a3325f9d9b9f2def6
scanty /
name age message
file .gitignore Tue Nov 04 14:45:29 -0800 2008 gitignore [adamwiggins]
file README.rdoc Mon Mar 30 02:04:15 -0700 2009 readme url fix [Adam Wiggins]
file Rakefile Tue Nov 04 14:44:39 -0800 2008 rake start/stop [adamwiggins]
file config.ru Wed Dec 31 10:00:58 -0800 2008 Added config.ru file for Passenger conventions [SFEley]
directory lib/ Wed Jun 24 23:50:07 -0700 2009 No Markdown, no summary html Nassau is a platf... [gilesbowkett]
file main.rb Wed Jun 24 23:38:08 -0700 2009 modified to look the way I want it to [gilesbowkett]
directory public/ Wed Jun 24 23:38:08 -0700 2009 modified to look the way I want it to [gilesbowkett]
directory spec/ Thu Nov 13 15:11:49 -0800 2008 use maruku for markdown and vendor it [adamwiggins]
directory vendor/ Thu Nov 13 15:15:09 -0800 2008 vendor syntax [adamwiggins]
directory views/ Wed Jun 24 23:50:07 -0700 2009 No Markdown, no summary html Nassau is a platf... [gilesbowkett]
README.rdoc

Scanty, a really small blog

Overview

Scanty is blogging software. Software for my blog, to be exact: adam.blog.heroku.com

It is not a blogging engine, but it’s small and easy to modify, so it could be the starting point for your blog, too.

Features

  • Posts (shock!)
  • Tags
  • Markdown (via Maruku)
  • Ruby code syntax highlighting (via Syntax)
  • Atom feed
  • Comments via Disqus
  • Web framework = Sinatra
  • ORM = Sequel

Dependencies

  $ gem install sinatra

Sequel, Maruku, and Syntax are all vendored.

Setup

Edit main.rb and change the Blog config struct at the top to your liking. For security purposes, change the admin password and the admin cookie key and value. These last two can be set to any random value you like, just choose something other than the default.

Then run the server:

  $ ruby main.rb

And visit: localhost:4567

Log in with the password you selected, then click New Post. The rest should be self-explanatory.

In production, you’ll probably want to run "rake start" to start (and restart) the server. Change the value of "port" at the top of the Rakefile to run on a different port.

Database

The default is a SQLite file named blog.db. To use something else, set DATABASE_URL in your environment when running the app, i.e.:

  $ DATABASE_URL='mysql://localhost/myblog' ruby main.rb

Or, modify the Sequel.connect statement at the top of main.rb.

The database will be created automatically when the server is executed.

Comments

There are no comments by default. If you wish to activate comments, create an account and a website on Disqus (disqus.com) and enter the website shortname as the :disqus_shortname value in the Blog config struct.

Import data

Christopher Swenson has a Wordpress importer: github.com/swenson/scanty_wordpress_import

Other kinds of data can be imported easily, take a look at the rake task :import for an example of loading from a YAML file with field names that match the database schema.

Customize

There are no themes or settings beyond the basic ones in the Blog struct. Just edit the CSS or the code as you see fit.

Meta

Written by Adam Wiggins

Patches contributed by: Christopher Swenson, S. Brent Faulkner, and Stephen Eley

Released under the MIT License: www.opensource.org/licenses/mit-license.php

github.com/adamwiggins/scanty

adam.blog.heroku.com