Skip to content

Commit 5e0c5f7

Browse files
committed
update entrypoint
1 parent dc9d15a commit 5e0c5f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ until mysqladmin ping -h"${DB_H}" --silent 2>/dev/null; do
1212
done
1313
echo "MySQL is ready."
1414

15+
# Permissions — toujours en root (avant le USER switch)
16+
chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache
17+
chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
18+
1519
# APP_KEY — générer seulement si absent
1620
grep -q '^APP_KEY=base64:' .env || php artisan key:generate --no-interaction
1721

0 commit comments

Comments
 (0)