diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2013-08-30 10:45:50 -0700 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2013-08-30 10:45:50 -0700 |
commit | 11d5b8064a10eee1a34836051b0c2000fe8b03a4 (patch) | |
tree | c2e15b4493daeb808742da6ce19319f1383ede47 /src/Hakyll/Core/Configuration.hs | |
parent | 94d7281a2c4f21e67e2da09c6029cf60583c37e7 (diff) | |
parent | 999252ece13cd695d65fed9cd01960f5ef3c60ff (diff) | |
download | hakyll-11d5b8064a10eee1a34836051b0c2000fe8b03a4.tar.gz |
Merge pull request #178 from blaenk/port-option
add preview port Configuration field
Diffstat (limited to 'src/Hakyll/Core/Configuration.hs')
-rw-r--r-- | src/Hakyll/Core/Configuration.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Hakyll/Core/Configuration.hs b/src/Hakyll/Core/Configuration.hs index a4bc90b..f9927de 100644 --- a/src/Hakyll/Core/Configuration.hs +++ b/src/Hakyll/Core/Configuration.hs @@ -69,6 +69,10 @@ data Configuration = Configuration , -- | Use an in-memory cache for items. This is faster but uses more -- memory. inMemoryCache :: Bool + , -- | Override default port for preview server. Default is 8000. + -- One can also override the port as a command line argument: + -- ./site preview -p 1234 + previewPort :: Int } -------------------------------------------------------------------------------- @@ -87,6 +91,7 @@ defaultConfiguration = Configuration , deployCommand = "echo 'No deploy command specified' && exit 1" , deploySite = system . deployCommand , inMemoryCache = True + , previewPort = 8000 } where ignoreFile' path |