9 lines
283 B
Bash
Executable File
9 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
# Fix ownership and permissions for storage directories
|
|
chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache
|
|
chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
|
|
# Run migrations
|
|
php artisan migrate --force
|
|
# Start PHP-FPM
|
|
exec "$@"
|