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

View File

@@ -62,4 +62,9 @@ RUN mkdir -p /var/www/storage/app/public \
chmod 755 -R /var/www && \
chmod -R 775 /var/www/storage /var/www/bootstrap/cache
COPY _docker/app/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
WORKDIR /var/www
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

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