Browse Source

Cambio app a riesgos

main
Celestino Rey 9 months ago
parent
commit
caadb0e13d
3 changed files with 2 additions and 22 deletions
  1. +1
    -1
      entra.sh
  2. +0
    -20
      entrypoint.sh
  3. +1
    -1
      src/config/entrypoint.sh

+ 1
- 1
entra.sh View File

@ -1,3 +1,3 @@
# Verificar el nombre del deployment # Verificar el nombre del deployment
oc exec -it deployment.apps/riesgosapp -- bash
oc exec -it deployment.apps/riesgos -- bash

+ 0
- 20
entrypoint.sh View File

@ -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 "$@"

+ 1
- 1
src/config/entrypoint.sh View File

@ -19,7 +19,7 @@ then
/opt/venv/bin/python manage.py migrate --no-input /opt/venv/bin/python manage.py migrate --no-input
/opt/venv/bin/python manage.py collectstatic --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;' nginx -g 'daemon off;'
else else


Loading…
Cancel
Save