Add config.ru to generator to simplify using MM with passenger or pow
This commit is contained in:
parent
a6a0dfb0f0
commit
724c480390
2 changed files with 5 additions and 0 deletions
|
@ -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])
|
||||
|
|
4
lib/middleman/templates/default/config.ru
Normal file
4
lib/middleman/templates/default/config.ru
Normal file
|
@ -0,0 +1,4 @@
|
|||
require 'rubygems'
|
||||
require 'middleman'
|
||||
|
||||
run Middleman::Server
|
Loading…
Reference in a new issue