map: tickets 06+07 resolved; 05 partial (live spawn pending gitea token)
This commit is contained in:
+9
-9
@@ -7,22 +7,22 @@ REMOTE="${1:-alarm}"
|
||||
REMOTE_DIR="${2:-/zdata/root/dockerFiles/lvmh}"
|
||||
|
||||
if ! ssh "$REMOTE" "test -f $REMOTE_DIR/.env" 2>/dev/null; then
|
||||
echo "ERROR: $REMOTE:$REMOTE_DIR/.env missing. Create it first (see .env.example):"
|
||||
echo " ssh $REMOTE 'mkdir -p $REMOTE_DIR && nano $REMOTE_DIR/.env'"
|
||||
echo " # LVMH_TOKEN=<random>, ZAI_RENAUD_API_KEY=<key>"
|
||||
exit 1
|
||||
echo "ERROR: $REMOTE:$REMOTE_DIR/.env missing. Create it first (see .env.example):"
|
||||
echo " ssh $REMOTE 'mkdir -p $REMOTE_DIR && nano $REMOTE_DIR/.env'"
|
||||
echo " # LVMH_TOKEN=<random>, ZAI_RENAUD_API_KEY=<key>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# web/dist must exist (daemon serves it)
|
||||
if [ ! -f web/dist/index.html ]; then
|
||||
echo "building web/dist first..."
|
||||
(cd web && bun install && bun run build)
|
||||
echo "building web/dist first..."
|
||||
(cd web && bun install && bun run build)
|
||||
fi
|
||||
|
||||
rsync -az --delete \
|
||||
--exclude .git --exclude node_modules --exclude web/node_modules \
|
||||
--exclude .env --exclude .scratch --exclude .pi --exclude coverage \
|
||||
./ "$REMOTE:$REMOTE_DIR/"
|
||||
--exclude .git --exclude node_modules --exclude web/node_modules \
|
||||
--exclude .env --exclude .scratch --exclude .pi --exclude coverage \
|
||||
./ "$REMOTE:$REMOTE_DIR/"
|
||||
|
||||
echo "building daemon image + worker image on $REMOTE..."
|
||||
ssh "$REMOTE" "cd $REMOTE_DIR \
|
||||
|
||||
Reference in New Issue
Block a user