tron/deploy-tron-degelas.sh

18 lines
397 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
APP_DIR="$(cd "$(dirname "$0")" && pwd)"
PROXY_DIR="/root/fullstack_degelas"
echo "Building and starting TRON stack..."
cd "$APP_DIR"
docker compose up --build -d
echo "Reloading nginx reverse proxy..."
cd "$PROXY_DIR"
docker compose exec nginx nginx -t
docker compose exec nginx nginx -s reload
echo "Done. Verify with:"
echo " curl -I https://tron.degelas.be"