diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Hakyll.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Hakyll.hs b/src/Text/Hakyll.hs index ee9cb5f..9dc8fbb 100644 --- a/src/Text/Hakyll.hs +++ b/src/Text/Hakyll.hs @@ -47,6 +47,7 @@ hakyllWithConfiguration configuration buildFunction = do ["clean"] -> clean ["preview", p] -> preview buildFunction (read p) ["preview"] -> preview buildFunction 8000 + ["rebuild"] -> clean >> buildFunction ["server", p] -> server (read p) ["server"] -> server 8000 _ -> help @@ -90,6 +91,7 @@ help = liftIO $ do ++ name ++ " clean Clean up and remove cache.\n" ++ name ++ " help Show this message.\n" ++ name ++ " preview [port] Run a server and autocompile.\n" + ++ name ++ " rebuild Clean up and build again.\n" ++ name ++ " server [port] Run a local test server.\n" -- | Start a server at the given port number. |