Fix create/edit pages missing vars; add storage:link entrypoint

- AutoController create/edit: add purposeCases, dillers
- EstateController create/edit: add purposeCases, districts, dillers
- Add entrypoint.sh to run storage:link on container start

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 06:32:13 +05:00
parent 8c381ba1ee
commit e68efae28a
4 changed files with 35 additions and 8 deletions

14
_docker/app/entrypoint.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
cd /var/www
# Create storage:link if not exists
if [ ! -L /var/www/public/storage ]; then
php artisan storage:link --force
fi
# Cache config
php artisan config:cache --no-ansi 2>/dev/null || true
exec php-fpm