Remove static serving of non-Middleman folders
This commit is contained in:
parent
1b6af9a4c1
commit
8bc2fddb9d
|
@ -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.
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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"
|
|
@ -1 +0,0 @@
|
|||
I am index
|
Loading…
Reference in a new issue