#!/bin/sh set -e cd /var/www/html # Luôn chạy composer install để đảm bảo vendor được cập nhật composer install --no-interaction --prefer-dist mkdir -p storage/logs \ storage/framework/cache \ storage/framework/sessions \ storage/framework/views \ bootstrap/cache touch storage/logs/laravel.log storage/logs/query.log chmod 666 storage/logs/laravel.log storage/logs/query.log chmod -R 777 storage bootstrap/cache exec "$@"