commit e518a81c8c6037e8b77a2c0b83edac79b8131720 parent 9c84b874005ab8da35b4634fe54c7cb84839db6f Author: William Casarin <jb55@jb55.com> Date: Sun, 28 Jan 2024 15:00:21 -0800 build: fix up the build some more and add a deploy script Signed-off-by: William Casarin <jb55@jb55.com> Diffstat:
M | build | | | 5 | ++++- |
A | deploy | | | 9 | +++++++++ |
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/build b/build @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -eou pipefail +set -eo pipefail env=$1 @@ -19,5 +19,8 @@ npx next build rm -rf "$OUT_DIR" mv out "$OUT_DIR" + # TODO: next doesn't seem to set this up properly. bug? +mkdir -p "$OUT_DIR/purple/checkout" ln "$OUT_DIR/purple.html" "$OUT_DIR/purple/index.html" +ln "$OUT_DIR/purple/checkout.html" "$OUT_DIR/purple/checkout/index.html" diff --git a/deploy b/deploy @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e + +./build +./build staging + +rsync -avzP out-production/ purple:/www/damus.io/ +rsync -avzP out-staging/ purple:/www/staging.damus.io/