From 140a1f58c1eeff1f7a61b46d8324670719417682 Mon Sep 17 00:00:00 2001 From: vickytechkey Date: Tue, 8 Sep 2026 20:41:37 +0530 Subject: [PATCH] Enable debug mode and ensure storage directories exist --- .forgejo/workflows/setup-ec2.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/setup-ec2.yml b/.forgejo/workflows/setup-ec2.yml index 812868c6..736f66ab 100644 --- a/.forgejo/workflows/setup-ec2.yml +++ b/.forgejo/workflows/setup-ec2.yml @@ -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'