README.md in toto-bongo-1.0.2 vs README.md in toto-bongo-1.0.3
- old
+ new
@@ -1,110 +1,59 @@
-toto bongo
+Toto bongo
====
+
Minimal blog forked from toto to use for your existing app's.
This is very useful for SEO optimization
+See http://toto-bongo.heroku.com/
-
-introduction
+Introduction
------------
-toto-bongo is a git-powered, minimalist blog engine forked from toto.
+Toto-bongo is a git-powered, minimalist blog engine forked from toto.
There is no toto client, and there probably will never be, everything goes through git.
From the security stand point, this makes toto-bongo very secure. By
reducing the attack surface( we don't handle any user input) we've made
a blog you can trust.
Other blogs have administration panels, sessions, cookies etc, that lead
to security vulnerabilities, toto-bongo has non of that.
blog in your app in 10 seconds
------------------
-
-Toto-bongo was designed to be used with a reverse-proxy cache, such as [Varnish](http://varnish-cache.org).
-This makes it an ideal candidate for **[heroku](http://heroku.com)**.
-
This is how to deploy in your existing app:
1. git clone git@github.com:danpal/toto-bongo-blog.git
+
2. Look at toto-bongo-blog Gemfile, add the following gems to your
Gemfile.
+
+ - gem 'toto-bongo'
+
+ - gem 'RedCloth'
+
+ - gem 'haml'
+
+ - gem 'sass' #if you want to use the sass stylesheet
- gem 'toto-bongo'
- gem 'builder'
- gem 'RedCloth'
- gem 'haml'
-3. Toto-bongo runs on rack, you need to modify your existing config.ru
-we provide you with an already existing config.ru, take a look at
-toto-bongo-blog config.ru
-(note this file might be outdated here, look at the one in the
-toto-bongo-blog)
-<pre><code>
- # This file is used by Rack-based servers to start the application.
- require 'toto-bongo'
- require ::File.expand_path('../config/environment', __FILE__)
+3. Replace the config.ru on your application to the one from toto-bongo-blog. Then modify accordingly.
- #point to your rails apps /public directory
- use Rack::Static, :urls => ['/stylesheets', '/javascripts', '/images', '/favicon.ico'], :root => 'public'
-
- use Rack::ShowExceptions
- use Rack::CommonLogger
-
- #run the toto application
- toto_bongo = TotoBongo::Server.new do
-
- #override the default location for the toto directories
- TotoBongo::Paths = {
- :templates => "blog/templates",
- :pages => "blog/templates/pages",
- :articles => "blog/articles"
- }
-
- # set your config variables here
- set :title, 'toto-bongo blog'
- set :date, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
- set :summary, :max => 500
- set :root, 'index'
- set :prefix, 'blog'
-
- if RAILS_ENV != 'production'
- set :url, "http://localhost:3000/blog/"
- else
- set :url, "http://toto-bongo.heroku.com/blog/" #EDIT THIS TO ADD YOUR OWN URL
- end
- end
-
- #create a rack app
- app = Rack::Builder.new do
- use Rack::CommonLogger
-
- #map requests to /blog to toto
- map '/blog' do
- run toto_bongo
- end
-
- #map all the other requests to rails
- map '/' do
- if Rails.version.to_f >= 3.0
- ActionDispatch::Static
- #run [ApplicationName]::Application
- run TotoBongoBlog::Application #change for your application name
- else # Rails 2
- use Rails::Rack::Static
- run ActionController::Dispatcher.new
- end
- end
- end.to_app
-
-</code></pre>
-
-Then make the following changes
- 1. Change :title
- 2. Run TotoBongoBlog::Application #change for your application name
+ Toto-bongo runs on rack, you need to modify your existing config.ru
+ we provide you with an already existing config.ru, take a look at toto-bongo-blog
+ config.ru
+ make the following changes
+ 1. Change :title
+ 2. Run TotoBongoBlog::Application #change for your application name
+4. Copy the blog directory into your application root folder.
+5. Copy the blog.sass stylesheet or blog.css from /public/stylesheets/sass/blog.sass or /public/stylesheets/sass/blog.css
+to your app stylesheets.
+
+
+You are done.
how it works
------------