pixelfed/worker-entrypoint.sh
chris dc51e0ebae
All checks were successful
dockers/pixelfed/pipeline/head This commit looks good
Make worker wait for app init
2020-05-30 12:52:02 +02:00

13 lines
209 B
Bash
Executable file

#!/usr/bin/env bash
set -xeo pipefail
php /wait-for-db.php
if [[ ! -e storage/.docker.init ]];
then
echo "Database is not initialized yet, exiting..."
sleep 5
exit 1
fi
gosu www-data php artisan horizon