Files
investbrain/docker/entrypoint.sh
T
2024-09-04 17:48:40 -05:00

19 lines
445 B
Bash
Executable File

#!/bin/bash
echo "Running entrypoint script..."
if [ ! -f /var/www/app/.env ]; then
echo "Ope, gotta create an .env file!"
cp /var/www/app/.env.example /var/www/app/.env
fi
echo "Waiting a second for the database to become available..."
sleep 2
echo "Running migrations..."
/usr/local/bin/php /var/www/app/artisan migrate
echo "Spinning up Supervisor daemon..."
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf