Commit6b603a3unknown_key
deploy: clone the feature branch in standalone-deploy.sh
deploy: clone the feature branch in standalone-deploy.sh The standalone compose file lives on the feature branch, but the script was cloning the repo default branch, so docker-compose.standalone.yml was absent. Clone/checkout the branch explicitly. https://claude.ai/code/session_01QKaJBYpD6DGErWHrRVChkf
1 file changed+7−46b603a31e13f2b3f1466390e92c81c5c931bcf8e
1 changed file+7−4
Modifiedscripts/standalone-deploy.sh+7−4View fileUnifiedSplit
@@ -13,6 +13,7 @@
1313set -euo pipefail
1414
1515REPO_URL="https://github.com/ccantynz-alt/Gluecron.com.git"
16REPO_BRANCH="claude/site-migration-vercel-XstpK"
1617REPO_DIR="/opt/gluecron"
1718COMPOSE="docker compose -f docker-compose.standalone.yml"
1819
@@ -24,13 +25,15 @@ if ! command -v docker >/dev/null 2>&1; then
2425 curl -fsSL https://get.docker.com | sh
2526fi
2627
27# 2. Code
28# 2. Code (the standalone compose file lives on $REPO_BRANCH)
2829if [ ! -d "$REPO_DIR/.git" ]; then
29 echo "-- cloning $REPO_URL"
30 git clone "$REPO_URL" "$REPO_DIR"
30 echo "-- cloning $REPO_URL ($REPO_BRANCH)"
31 git clone -b "$REPO_BRANCH" "$REPO_URL" "$REPO_DIR"
3132fi
3233cd "$REPO_DIR"
33git pull --ff-only 2>/dev/null || true
34git fetch origin "$REPO_BRANCH" 2>/dev/null || true
35git checkout "$REPO_BRANCH" 2>/dev/null || true
36git pull --ff-only origin "$REPO_BRANCH" 2>/dev/null || true
3437
3538# 3. Env (random Postgres password on first run)
3639if [ ! -f .env ]; then
3740