From c94bd7cf8130171ef147b15a8e1be44b27a8a3d8 Mon Sep 17 00:00:00 2001 From: Romain de Laage Date: Thu, 20 Oct 2022 12:28:01 +0200 Subject: [PATCH] build(docker): run automatic database migration in entrypoint --- docker/production/app/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/production/app/entrypoint.sh b/docker/production/app/entrypoint.sh index 7246b533..b24dcab0 100644 --- a/docker/production/app/entrypoint.sh +++ b/docker/production/app/entrypoint.sh @@ -194,5 +194,8 @@ fi echo "Using config:" cat /opt/castopod/.env +cd /opt/castopod +php spark castopod:database-update + /usr/sbin/crond -f /crontab.txt -L /dev/stdout & /usr/local/sbin/php-fpm