Permalink
Browse files

Provide Schnitzelpress.omnomnom! for even simpler startup.

  • Loading branch information...
1 parent 625561d commit 5ab6a97e85ddb3b1cd479fe1f3c1722b9ffc25b8 @hmans committed Mar 3, 2012
Showing with 11 additions and 5 deletions.
  1. +5 −0 lib/schnitzelpress.rb
  2. +6 −5 lib/templates/new_blog/config.ru.tt
View
@@ -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
@@ -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.