rewrite impstr in typescript + tailwind, deploy as static pwa
This commit is contained in:
19
deploy.sh
Normal file
19
deploy.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
REMOTE_HOST="serve"
|
||||
REMOTE_DIR="/var/www/virtual/serve/html/impstr"
|
||||
|
||||
echo "==> Installing local dependencies..."
|
||||
bun install
|
||||
|
||||
echo "==> Building..."
|
||||
bun run build
|
||||
|
||||
echo "==> Syncing to ${REMOTE_HOST}:${REMOTE_DIR} ..."
|
||||
ssh "${REMOTE_HOST}" "mkdir -p ${REMOTE_DIR}"
|
||||
rsync -avz --delete \
|
||||
--exclude='.DS_Store' \
|
||||
dist/ "${REMOTE_HOST}:${REMOTE_DIR}/"
|
||||
|
||||
echo "Done. Live at https://serve.uber.space/impstr/"
|
||||
Reference in New Issue
Block a user