mfashby.net

Website mfashby.net
git clone git://code.mfashby.net:/mfashby.net
Log | Files | Refs | Submodules | README

deploy.sh (464B)


      1 #!/usr/bin/env bash
      2 
      3 set -e
      4 
      5 HOST=${HOST:-mserver}
      6 USER=${USER:-git}
      7 # Build static site
      8 zig build
      9 
     10 # Build comments app
     11 # Comments is disabled until I can make it work on openbsd
     12 #pushd comments
     13 #zig build \
     14 #   -Doptimize=ReleaseSafe \
     15 #   -Dtarget=aarch64-linux-gnu \
     16 #   -Dcpu=baseline
     17 #popd
     18 
     19 # Copy static site
     20 rsync -rz zig-out/* ${USER}@$HOST:/var/www/mfashby.net
     21 
     22 # Copy comments app
     23 #rsync comments/zig-out/bin/comments root@$HOST:/usr/local/bin/comments