Fix storage link on docker

This commit is contained in:
mchev
2026-04-02 11:56:16 +02:00
parent 375cfc6b18
commit de4ba6bba0
3 changed files with 15 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 ****"