#!/bin/sh
set -e

php artisan migrate:status > /dev/null 2>&1 || sleep 5
php artisan config:clear
php artisan migrate --seed --force || true
php artisan optimize

exec apache2-foreground
