feat: integración final de Jenkins con inyección de .env segura
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
This commit is contained in:
15
deployments/entrypoint.sh
Normal file
15
deployments/entrypoint.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Salir inmediatamente si un comando falla
|
||||
set -e
|
||||
|
||||
echo "--> Ejecutando migraciones..."
|
||||
python manage.py makemigrations --noinput
|
||||
python manage.py migrate --noinput
|
||||
|
||||
# En el futuro, aquí podrías añadir:
|
||||
# python manage.py collectstatic --noinput
|
||||
|
||||
echo "--> Arrancando el servidor Django..."
|
||||
# Usamos exec para que Django sea el proceso principal (PID 1) y reciba señales de Docker
|
||||
exec python manage.py runserver 0.0.0.0:8000
|
||||
Reference in New Issue
Block a user