From 52c8a0966bc32f6256f092a54a7e9965ea95f996 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Sun, 10 Jan 2021 01:29:27 +0100 Subject: Build with cabal Change setup to build site with cabal version 2.4 and ghc version 8.6.4 on OpenBSD 6.8. --- deploy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'deploy') 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 \ -- cgit v1.2.3