summaryrefslogtreecommitdiff
path: root/deploy
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2021-01-10 01:29:27 +0100
committerStefan Kreutz <mail@skreutz.com>2021-01-10 01:34:13 +0100
commit52c8a0966bc32f6256f092a54a7e9965ea95f996 (patch)
treeabec276f16a4f39279a3f09fa5f97a75bd6780be /deploy
parent2d9cbdd20fbf874f950dab167c18088f3fa638fb (diff)
downloadblog-52c8a0966bc32f6256f092a54a7e9965ea95f996.tar
Build with cabal
Change setup to build site with cabal version 2.4 and ghc version 8.6.4 on OpenBSD 6.8.
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy6
1 files changed, 3 insertions, 3 deletions
diff --git a/deploy b/deploy
index 70afc7f..33d81f9 100755
--- a/deploy
+++ b/deploy
@@ -27,8 +27,8 @@ archive="./${now}_${rev}.tar.gz"
printf "Re-generating static website from source ...\\n"
( cd "${root}" \
- && stack run -- clean >/dev/null 2>&1 \
- && stack run -- build >/dev/null 2>&1 )
+ && cabal v2-run exe:site -- clean >/dev/null 2>&1 \
+ && cabal v2-run exe:site -- build >/dev/null 2>&1 )
[ -z "$( git status --porcelain )" ] || {
( >&2 printf "error: dirty working tree\\n" )
@@ -40,7 +40,7 @@ tar -czf "${archive}" "${src}"
scp "${archive}" engine.skreutz.com:www-archive/
rm "${archive}"
-rsync --rsync-path=openrsync --archive --delete --verbose \
+openrsync --rsync-path=openrsync --archive --delete --verbose \
"${src}" "engine.skreutz.com:/var/www/htdocs/www.skreutz.com"
curl \
Generated by cgit. See skreutz.com for my tech blog and contact information.