From 47e606e2bf4f9878ed7cefa8c46ebc7ce7a22908 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Tue, 8 Jan 2019 15:46:39 -0500 Subject: [PATCH] Add deployment command --- site.hs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/site.hs b/site.hs index b36df87..b334cf3 100644 --- a/site.hs +++ b/site.hs @@ -10,8 +10,16 @@ import Text.Regex (splitRegex, mkRegex) -------------------------------------------------------------------------------- config :: Configuration +{- +deploy command expects www to point to web server - this is the current config +Host www + Hostname 10.1.10.30 + User root + ProxyJump dj@ares.dbalan.in +-} config = defaultConfiguration { - destinationDirectory = "public" + destinationDirectory = "public" + , deployCommand = "rsync -vrP public/ www:/usr/local/www/nginx/blog/" } main :: IO ()