Remove static serving of non-Middleman folders

This commit is contained in:
Thomas Reynolds 2014-03-25 16:57:57 -07:00
parent 1b6af9a4c1
commit 8bc2fddb9d
4 changed files with 2 additions and 10 deletions

View file

@ -1,6 +1,7 @@
master
===
* Removed ability to server folders of content statically (non-Middleman projects).
* Prevent local templates being loaded when $HOME is not set
* Removed "Implied Extension feature"
* Remove 'upgrade' and 'install' CLI commands.

View file

@ -58,9 +58,7 @@ module Middleman::Cli
if !ENV['MM_ROOT']
puts '== Could not find a Middleman project config.rb'
puts '== Treating directory as a static site to be served'
ENV['MM_ROOT'] = Dir.pwd
ENV['MM_SOURCE'] = ''
exit
end
params = {

View file

@ -1,6 +0,0 @@
Feature: Middleman should serve plain directories without config
Scenario: Preview a folder of static pages
Given the Server is running at "plain-app"
When I go to "/index.html"
Then I should see "I am index"

View file

@ -1 +0,0 @@
I am index