From 724c480390a655563420bb968438617f9093680a Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Fri, 8 Apr 2011 11:48:47 -0700 Subject: [PATCH] Add config.ru to generator to simplify using MM with passenger or pow --- bin/mm-init | 1 + lib/middleman/templates/default/config.ru | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 lib/middleman/templates/default/config.ru diff --git a/bin/mm-init b/bin/mm-init index 640d6955..3e59770a 100755 --- a/bin/mm-init +++ b/bin/mm-init @@ -26,6 +26,7 @@ module Middleman empty_directory File.join(location, "views") else template "default/config.tt", File.join(location, "config.rb") + template "default/config.ru", File.join(location, "config.ru") directory "default/views", File.join(location, "views") empty_directory File.join(location, "public", options[:css_dir]) empty_directory File.join(location, "public", options[:js_dir]) diff --git a/lib/middleman/templates/default/config.ru b/lib/middleman/templates/default/config.ru new file mode 100644 index 00000000..9820e4d9 --- /dev/null +++ b/lib/middleman/templates/default/config.ru @@ -0,0 +1,4 @@ +require 'rubygems' +require 'middleman' + +run Middleman::Server \ No newline at end of file