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/
This commit is contained in:
+19
-33
@@ -6,43 +6,29 @@ REMOTE="server1"
|
||||
REMOTE_PATH="/home/hostingd/public_html"
|
||||
LOCAL_USER="root"
|
||||
|
||||
echo "=== Deploy hostingdelsur.net ==="
|
||||
echo "Local dist: $DIST"
|
||||
echo "=== Deploy hostingdelsur.net (rsync) ==="
|
||||
echo "Local: $DIST"
|
||||
echo "Remote: $REMOTE:$REMOTE_PATH"
|
||||
echo "Preserving: mwp/, .well-known/, .smtp-credentials.json (initially)"
|
||||
echo ""
|
||||
|
||||
# lftp sync: borra archivos del remote que no estén en local,
|
||||
# sube los nuevos, NO toca mwp/ ni .well-known/
|
||||
lftp -c "
|
||||
set sftp:auto-confirm yes
|
||||
set ssl:verify-certificate no
|
||||
open -u $LOCAL_USER sftp://$REMOTE
|
||||
cd $REMOTE_PATH
|
||||
# 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"
|
||||
|
||||
# 1. Backup de archivos críticos a tmp antes de limpiar
|
||||
mkdir -p /tmp/hds-deploy-backup
|
||||
mv .smtp-credentials.json /tmp/hds-deploy-backup/ 2>/dev/null || true
|
||||
# Copy root .htaccess (HTTPS forzado, security headers)
|
||||
cp /root/opencode/development/hostingdelsur.net/scripts/htaccess.conf "$DIST/.htaccess"
|
||||
|
||||
# 2. Limpiar lo que va a ser reemplazado
|
||||
# (NO borra mwp/ ni .well-known/)
|
||||
glob rm -rf '!(mwp|.well-known)'
|
||||
echo '=== Archivos restantes tras limpieza ==='
|
||||
ls -la
|
||||
# rsync with --delete to mirror
|
||||
rsync -avz --delete \
|
||||
--exclude='mwp' \
|
||||
--exclude='.well-known' \
|
||||
--exclude='.smtp-credentials.json' \
|
||||
-e ssh \
|
||||
"$DIST/" \
|
||||
"$REMOTE:$REMOTE_PATH/"
|
||||
|
||||
# 3. Subir dist
|
||||
mirror --reverse --delete --verbose=1 $DIST/ ./
|
||||
|
||||
# 4. Restaurar credenciales (se moverán después a /home/hostingd/)
|
||||
mv /tmp/hds-deploy-backup/.smtp-credentials.json ./ 2>/dev/null || true
|
||||
|
||||
echo ''
|
||||
echo '=== Resultado ==='
|
||||
ls -la
|
||||
"
|
||||
echo ""
|
||||
echo "=== Verificación mwp intacto ==="
|
||||
ssh $REMOTE "ls /home/hostingd/public_html/mwp/ | head -5" 2>&1
|
||||
echo ""
|
||||
echo "=== Files deployed ==="
|
||||
ssh $REMOTE "find /home/hostingd/public_html -maxdepth 1 -type d" 2>&1
|
||||
echo "=== Verificación ==="
|
||||
ssh $REMOTE "ls -la /home/hostingd/public_html/api/ && echo '---' && ls /home/hostingd/public_html/mwp/ | head -3"
|
||||
|
||||
Reference in New Issue
Block a user