Merge pull request #612 from mchev/master

Ensure public/storage symlink exists in Docker production entrypoint
This commit is contained in:
mchev
2026-04-04 18:57:09 +02:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ fi
echo "**** Setting up artisan permissions ****"
chmod +x artisan
if [ ! -L /var/www/html/public/storage ]; then
echo "**** Creating storage symlink (public/storage) ****"
./artisan storage:link --force -n || true
fi
if ! grep -q "APP_KEY" /var/www/html/.env
then
echo "**** Creating empty APP_KEY variable ****"