site: add deploy command
authorLucian Mogosanu <lucian.mogosanu@gmail.com>
Mon, 22 Jul 2013 07:51:49 +0000 (10:51 +0300)
committerLucian Mogosanu <lucian.mogosanu@gmail.com>
Mon, 22 Jul 2013 07:51:49 +0000 (10:51 +0300)
site.hs
templates/default.html

diff --git a/site.hs b/site.hs
index 0cbc434..fcce36b 100644 (file)
--- 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
index 827ac6c..d57ea6d 100644 (file)
@@ -30,7 +30,7 @@
        </div>
 
        <div id="footer">
-               The Tar Pit is proudly generated by
+               Tarpit proudly generated by
                <a href="http://jaspervdj.be/hakyll">Hakyll</a>
        </div>
 <!-- so far, so good -->