Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Provide Schnitzelpress.omnomnom! for even simpler startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmans committed Mar 3, 2012
1 parent 625561d commit 5ab6a97
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions lib/schnitzelpress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ def init!
Mongoid.load!("./config/mongo.yml")
Schnitzelpress::Post.create_indexes
end

def omnomnom!
init!
App.with_local_files
end
end
end

Expand Down
11 changes: 6 additions & 5 deletions lib/templates/new_blog/config.ru.tt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$stdout.sync = true
require File.expand_path("../app.rb", __FILE__)
# encoding: UTF-8
require 'rubygems'
require 'bundler'
Bundler.require

# Run the app, with support for files in ./public/
#
run Schnitzelpress::App.with_local_files
$stdout.sync = true
run Schnitzelpress.omnomnom!

0 comments on commit 5ab6a97

Please sign in to comment.