Enable debug mode and ensure storage directories exist
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 27s

This commit is contained in:
vickytechkey 2026-09-08 20:41:37 +05:30
parent aedd786edd
commit 140a1f58c1

View file

@ -69,8 +69,8 @@ jobs:
cd /var/www/trypost
composer install --no-interaction --prefer-dist --optimize-autoloader
# Ensure storage and bootstrap/cache directories exist and have proper permissions for Nginx/PHP-FPM
mkdir -p storage bootstrap/cache
# Ensure all storage subdirectories exist
mkdir -p storage/logs storage/framework/views storage/framework/sessions storage/framework/cache bootstrap/cache
sudo chown -R www-data:www-data storage bootstrap/cache
sudo chmod -R 775 storage bootstrap/cache
@ -79,6 +79,11 @@ jobs:
cp .env.example .env
php artisan key:generate
fi
# Temporarily enable debug mode to see exactly why it is failing!
sed -i 's/APP_DEBUG=false/APP_DEBUG=true/g' .env
sed -i 's/APP_ENV=production/APP_ENV=local/g' .env
php artisan optimize:clear
# 6. Configure Nginx for socialmedia.tradhox.com
echo "Configuring Nginx..."
sudo tee /etc/nginx/sites-available/socialmedia.tradhox.com > /dev/null << 'EOF'