أُنشئ من Tokal/Test
Initial backend upload
هذا الالتزام موجود في:
21
docker/entrypoint.sh
Normal file
21
docker/entrypoint.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
cd /var/www/html
|
||||
|
||||
if [ ! -f .env ]; then
|
||||
cp .env.example .env
|
||||
fi
|
||||
|
||||
php artisan key:generate --force --no-interaction || true
|
||||
php artisan storage:link || true
|
||||
|
||||
if [ "${RUN_MIGRATIONS}" = "true" ]; then
|
||||
php artisan migrate --force --no-interaction
|
||||
fi
|
||||
|
||||
php artisan config:cache || true
|
||||
php artisan route:cache || true
|
||||
php artisan view:cache || true
|
||||
|
||||
exec "$@"
|
||||
المرجع في مشكلة جديدة
حظر مستخدم