first
This commit is contained in:
21
docker/entrypoint.sh
Normal file
21
docker/entrypoint.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
if [ -z "${APP_KEY}" ]; then
|
||||
php artisan key:generate --force --no-interaction
|
||||
fi
|
||||
|
||||
mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache
|
||||
|
||||
php artisan config:clear --no-interaction
|
||||
php artisan view:cache --no-interaction
|
||||
|
||||
if [ "${RUN_MIGRATIONS}" = "true" ]; then
|
||||
php artisan migrate --force --no-interaction
|
||||
fi
|
||||
|
||||
if [ "${RUN_SEEDERS}" = "true" ]; then
|
||||
php artisan db:seed --force --no-interaction
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user