Something went wrong. Try again.
standard.site frontend
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536#!/usr/bin/env bashset -euo pipefail
# Deploy script for vibecode.rodeo.# Run on the server to pull the latest code from Tangled and restart.
APP_DIR="/opt/vibecode"SERVICE="vibecode"TANGLED_URL="https://tangled.org/did:plc:udtezrjybbshf2se24lykure"
cd "$APP_DIR"
git config --global --add safe.directory "$APP_DIR" 2>/dev/null || true
if [ -d .git ]; then echo "Pulling latest code from Tangled..." git pull "$TANGLED_URL" mainelse echo "Initializing git repo and pulling from Tangled..." git init git remote add tangled "$TANGLED_URL" git fetch tangled git reset --hard tangled/mainfi
echo "Installing dependencies..."sudo -u vibecode bash -c 'cd /opt/vibecode && PUB_CACHE=/opt/vibecode/.pub-cache /usr/lib/dart/bin/dart pub get'
echo "Restarting $SERVICE..."systemctl restart "$SERVICE"
echo "Reloading nginx..."systemctl reload nginx
echo "Deployment complete."