From 923e7ff5e3a5b61bc7f409cef82e265801635aad Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Tue, 11 Feb 2025 13:03:00 +0100 Subject: [PATCH] Pongo path al venv en entrypoint.sh --- README.md | 3 +++ src/config/entrypoint.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 787ec62..815b20c 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,9 @@ Crear un proyecto y luego añadir una app desde Agregar, importar desde git. Tal y como está la estructura de directorios, deberia detectar automáticamente una compilación Python +Desde la línea de comandos, sería: + +oc new-app http://gitea.reymota.es/creylopez/ReyMotaAppsOC.git -e DEBUG=True diff --git a/src/config/entrypoint.sh b/src/config/entrypoint.sh index 8d18228..9bee90b 100644 --- a/src/config/entrypoint.sh +++ b/src/config/entrypoint.sh @@ -4,6 +4,8 @@ DATABASE=postgres SQL_HOST=cluster-pg-rw.cloudnativepg SQL_PORT=5432 +export PATH=/opt/venv/bin:$PATH + if [ "$DATABASE" = "postgres" ] then echo "Waiting for postgres..."