diff options
author | Martin Ashby <martin@ashbysoft.com> | 2024-12-23 21:30:20 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2024-12-23 21:30:20 +0000 |
commit | 11855d91f77cf37062e3cba32bd7c3d63ed304a7 (patch) | |
tree | 09f38db6f889ade07ce10a55cf03e60d25abaf0a /deploy.sh | |
parent | 82e7ac75954c973a5c59a02684788c0fb26e14dd (diff) | |
download | mfashby.net-11855d91f77cf37062e3cba32bd7c3d63ed304a7.tar.gz mfashby.net-11855d91f77cf37062e3cba32bd7c3d63ed304a7.tar.bz2 mfashby.net-11855d91f77cf37062e3cba32bd7c3d63ed304a7.tar.xz mfashby.net-11855d91f77cf37062e3cba32bd7c3d63ed304a7.zip |
Allow override of host for deploy
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,6 +2,7 @@ set -e +HOST=${HOST:-rpi3} # Build static site zig build @@ -14,7 +15,7 @@ zig build \ popd # Copy static site -rsync -rz zig-out/* root@rpi3:/var/www/mfashby.net +rsync -rz zig-out/* root@$HOST:/var/www/mfashby.net # Copy comments app -rsync comments/zig-out/bin/comments root@rpi3:/usr/local/bin/comments +rsync comments/zig-out/bin/comments root@$HOST:/usr/local/bin/comments |