From caadb0e13d07f367272bef9fefbfd42305c36e2b Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Thu, 27 Feb 2025 15:53:09 +0100 Subject: [PATCH] Cambio app a riesgos --- entra.sh | 2 +- entrypoint.sh | 20 -------------------- src/config/entrypoint.sh | 2 +- 3 files changed, 2 insertions(+), 22 deletions(-) delete mode 100755 entrypoint.sh diff --git a/entra.sh b/entra.sh index ca3096c..e012a62 100644 --- a/entra.sh +++ b/entra.sh @@ -1,3 +1,3 @@ # Verificar el nombre del deployment -oc exec -it deployment.apps/riesgosapp -- bash +oc exec -it deployment.apps/riesgos -- bash diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index 01fa726..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -if [ "$DATABASE" = "postgres" ] -then - echo "Waiting for postgres..." - - while ! nc -z $SQL_HOST $SQL_PORT; do - sleep 0.1 - done - - echo "PostgreSQL started" -else - echo "la base de datos no es postgres: '$DATABASE'" -fi - -python manage.py collectstatic --noinput -#python manage.py flush --no-input -#python manage.py migrate - -exec "$@" diff --git a/src/config/entrypoint.sh b/src/config/entrypoint.sh index 8f3d562..bc18066 100644 --- a/src/config/entrypoint.sh +++ b/src/config/entrypoint.sh @@ -19,7 +19,7 @@ then /opt/venv/bin/python manage.py migrate --no-input /opt/venv/bin/python manage.py collectstatic --no-input - /opt/venv/bin/gunicorn reymota.wsgi:application --bind "0.0.0.0:${RUN_PORT}" --daemon + /opt/venv/bin/gunicorn riesgos.wsgi:application --bind "0.0.0.0:${RUN_PORT}" --daemon nginx -g 'daemon off;' else