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