From 9ec62069677c520161a5b2c15a3c33438e2ec252 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 23 Jun 2019 21:42:45 +0200 Subject: Add recipe and deploy to own server --- src/Main.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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" ] } -- cgit v1.2.3