aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoris2019-06-23 21:42:45 +0200
committerJoris2019-06-23 21:42:45 +0200
commit9ec62069677c520161a5b2c15a3c33438e2ec252 (patch)
tree58fb6b4dfec0a71b009c99b605224b2408225bc6 /src
parentca31e0ee11d05b3250aa35db5baa0b155939bbbd (diff)
Add recipe and deploy to own server
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index d0dd91f..11ea34a 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -3,10 +3,10 @@
import Data.List (sortBy)
import Data.Monoid (mappend)
import Data.Ord (comparing)
-
import Hakyll
import Hakyll.Core.Item (Item (itemIdentifier))
import System.Process (readProcess)
+import qualified System.Process as Process (rawSystem)
main :: IO ()
main = hakyllWith configuration $ do
@@ -51,5 +51,6 @@ main = hakyllWith configuration $ do
configuration :: Configuration
configuration = defaultConfiguration
{ destinationDirectory = "public"
- , inMemoryCache = True
+ , deploySite = const $
+ Process.rawSystem "rsync" [ "-avzh", "public/", "joris@guyonvarch.me:/var/www/cooking.guyonvarch.me" ]
}