Files
hostingdelsur.net/scripts/deploy.sh
T
Mauri a6ca849630 fix: ocultar testimonios, horario 10-18, quitar precio técnico, fix toggle inglés
- Ocultar sección de testimonios en la home (Working on it hasta tener contenido real)
- Cambiar horario comercial de 9-18 a 10-18 hs UYT
- Quitar 'Técnico: USD X' y 'X USD/MB' de la web (Mauri pidió sacarlo)
- Crear /en/index.astro que faltaba — el toggle inglés daba 403 porque no había index.html en /en/
2026-06-09 06:50:59 -03:00

35 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
set -e
DIST="/root/opencode/development/hostingdelsur.net/dist"
REMOTE="server1"
REMOTE_PATH="/home/hostingd/public_html"
LOCAL_USER="root"
echo "=== Deploy hostingdelsur.net (rsync) ==="
echo "Local: $DIST"
echo "Remote: $REMOTE:$REMOTE_PATH"
echo ""
# Copy PHP endpoints into dist (they don't go through Astro)
mkdir -p "$DIST/api"
cp /root/opencode/development/hostingdelsur.net/src/forms/contact.php "$DIST/api/contact.php"
cp /root/opencode/development/hostingdelsur.net/src/forms/deploy-webhook.php "$DIST/api/deploy-webhook.php"
cp /root/opencode/development/hostingdelsur.net/src/forms/api-htaccess "$DIST/api/.htaccess"
# Copy root .htaccess (HTTPS forzado, security headers)
cp /root/opencode/development/hostingdelsur.net/scripts/htaccess.conf "$DIST/.htaccess"
# rsync with --delete to mirror
rsync -avz --delete \
--exclude='mwp' \
--exclude='.well-known' \
--exclude='.smtp-credentials.json' \
-e ssh \
"$DIST/" \
"$REMOTE:$REMOTE_PATH/"
echo ""
echo "=== Verificación ==="
ssh $REMOTE "ls -la /home/hostingd/public_html/api/ && echo '---' && ls /home/hostingd/public_html/mwp/ | head -3"