From: Lucian Mogosanu Date: Mon, 22 Jul 2013 07:51:49 +0000 (+0300) Subject: site: add deploy command X-Git-Tag: v0.1~14 X-Git-Url: https://git.mogosanu.ro/?a=commitdiff_plain;h=7c7c58640e68904cea7c61f66ceb20fb6970c50d;p=thetarpit.git site: add deploy command --- 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 @@