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:
@@ -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
14
_docker/app/entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user