diff --git a/README.md b/README.md index 71e1cc5..129b450 100644 --- a/README.md +++ b/README.md @@ -71,14 +71,3 @@ ensures your `public/` is "clean" and doesn't contain any random junk that might > _or_ make my own `os.CopyFS`...but with Blackjack...and...and Hookers. After that when you work on the templates it'll sync them over and rebuild your public for you. - -In this example I've removed the comment. Once you do that `ssgod` will then __remove your -public/__ directory on each run, but recreate it from the `static/` and `pages/` directory. This -ensures your `public/` is "clean" and doesn't contain any random junk that might mess up your build. - -> __NOTE__: This is a valid reason to do this, but the technical reason is that Go's `os.CopyFS` -> will error out when the target file exists. Not sure what kind of Nanny-State bullshit is going -> on over at Google but the only viable solution is to just remove the directory that's the target, -> _or_ make my own `os.CopyFS`...but with Blackjack...and...and Hookers. - -After that when you work on the templates it'll sync them over and rebuild your public for you. diff --git a/example/ssgod.toml b/example/ssgod.toml index cb6a558..4571fea 100644 --- a/example/ssgod.toml +++ b/example/ssgod.toml @@ -3,4 +3,5 @@ views = "pages" layout = "pages/layouts/main.html" target = "public" watch_delay = "500ms" -sync_dir = "static" +# comment this out, WARNING this deletes target! +# sync_dir = "static"