Fix: ruta WS de :param a {param} (Axum 0.8 syntax)
Build & Deploy NutriApp / build-and-deploy (push) Failing after 10m7s

This commit is contained in:
2026-06-27 14:33:42 +01:00
parent 0238518822
commit 0af7f1724f
3 changed files with 47 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ use axum::{Router, routing::get};
pub fn ws_routes() -> Router<crate::AppState> {
Router::new()
.route("/familia/:familia_id", get(ws_familia_handler))
.route("/familia/{familia_id}", get(ws_familia_handler))
}
// WebSocket colaborativo para edición en tiempo real del menú
Executable
+30
View File
@@ -0,0 +1,30 @@
#!/bin/bash
# ===================================================
# NutriApp — Deploy final
# Ejecutar en la Pi: bash ~/nutriapp/deploy.sh
# ===================================================
set -e
echo "=== 1/3 Configurando registry inseguro para k3s ==="
sudo tee /etc/rancher/k3s/registries.yaml << 'REGISTRY'
mirrors:
"10.43.162.10:5000":
endpoint:
- "http://10.43.162.10:5000"
REGISTRY
echo ""
echo "=== 2/3 Reiniciando k3s ==="
sudo systemctl restart k3s
echo "Esperando 15s a que k3s levante..."
sleep 15
echo ""
echo "=== 3/3 Eliminando pod viejo y verificando ==="
kubectl delete pod -n nutriapp --all --grace-period=0 --force 2>/dev/null || true
sleep 5
kubectl get pods -n nutriapp
echo ""
echo "Si el pod queda Running, probá:"
echo " curl http://nutriapp.nutriapp:3100/api/health"
echo " curl https://nutriapp.proyectosjoel.com/api/health"
+16
View File
@@ -0,0 +1,16 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: nutriapp
namespace: nutriapp
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`nutriapp.proyectosjoel.com`)
services:
- name: nutriapp
port: 3100
tls:
certResolver: cloudflare