diff options
author | Stefan Kreutz <mail@skreutz.com> | 2021-01-10 01:29:27 +0100 |
---|---|---|
committer | Stefan Kreutz <mail@skreutz.com> | 2021-01-10 01:34:13 +0100 |
commit | 52c8a0966bc32f6256f092a54a7e9965ea95f996 (patch) | |
tree | abec276f16a4f39279a3f09fa5f97a75bd6780be /deploy | |
parent | 2d9cbdd20fbf874f950dab167c18088f3fa638fb (diff) | |
download | blog-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-x | deploy | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 \ |