Disable render-to-memory on Windows - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 91e0c2b1feb2a7a1b074784a41249139b2fae975
 (DIR) parent 4679fbee41d34811edf3adf435611f51107c763b
 (HTM) Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Wed, 18 Nov 2015 23:10:56 +0100
       
       Disable render-to-memory on Windows
       
       See #1586
       
       Diffstat:
         M commands/server.go                  |       5 +++++
       
       1 file changed, 5 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/commands/server.go b/commands/server.go
       @@ -137,6 +137,11 @@ func server(cmd *cobra.Command, args []string) {
                        renderToDisk = true
                }
        
       +        if !renderToDisk && runtime.GOOS == "windows" {
       +                jww.ERROR.Println("Render to memory currently not supported in Windows, see https://github.com/spf13/hugo/issues/1586")
       +                renderToDisk = true
       +        }
       +
                // Hugo writes the output to memory instead of the disk
                if !renderToDisk {
                        hugofs.DestinationFS = new(afero.MemMapFs)