Enable debug mode and ensure storage directories exist
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 27s
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 27s
This commit is contained in:
parent
aedd786edd
commit
140a1f58c1
1 changed files with 7 additions and 2 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue