Files
torsearch/docker/app/entrypoint.sh

17 lines
487 B
Bash

#!/bin/sh
# Sleep for a second to ensure DB is awake and ready
SLEEP_TIME=$(shuf -i 2-4 -n 1)
echo "> Sleeping for ${SLEEP_TIME} seconds to wait for the database"
sleep $SLEEP_TIME
# Provision database
php /app/bin/console doctrine:migrations:migrate --no-interaction
php /app/bin/console db:seed
# Start the media cache warming services
systemctl --user enable messenger-worker.service
systemctl --user start messenger-worker.service
frankenphp php-server /etc/frankenphp/Caddyfile