From 7c7c58640e68904cea7c61f66ceb20fb6970c50d Mon Sep 17 00:00:00 2001 From: Lucian Mogosanu Date: Mon, 22 Jul 2013 10:51:49 +0300 Subject: [PATCH] site: add deploy command --- site.hs | 13 +++++++++++-- templates/default.html | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/site.hs b/site.hs index 0cbc434..fcce36b 100644 --- a/site.hs +++ b/site.hs @@ -1,6 +1,7 @@ {-# LANGUAGE OverloadedStrings #-} -import Data.Monoid (mappend) -import Hakyll +import Data.Monoid (mappend) +import Hakyll +import Hakyll.Core.Configuration -- wrapping it up main :: IO () @@ -114,6 +115,14 @@ postCtx = dateField "date" "%B %e, %Y" `mappend` defaultContext tagsCtx :: Tags -> Context String tagsCtx tags = tagsField "tags" tags `mappend` postCtx +-- hakyll configuration +tarpitConfiguration :: Configuration +tarpitConfiguration = defaultConfiguration + { deployCommand = commStr } + where + commStr = "rsync -avz -e 'ssh -p 2200'" + ++ "_site mogosanu.ro:/virtual/sites/thetarpit.org" + -- support for RSS feeds tarpitFeed :: FeedConfiguration tarpitFeed = FeedConfiguration diff --git a/templates/default.html b/templates/default.html index 827ac6c..d57ea6d 100644 --- a/templates/default.html +++ b/templates/default.html @@ -30,7 +30,7 @@ -- 1.7.10.4