diff --git a/.forgejo/workflows/setup-ec2.yml b/.forgejo/workflows/setup-ec2.yml index 9c2dba06..584f3cfc 100644 --- a/.forgejo/workflows/setup-ec2.yml +++ b/.forgejo/workflows/setup-ec2.yml @@ -83,9 +83,15 @@ jobs: php artisan key:generate --force fi + # Configure Database connection + sed -i 's/DB_HOST=127.0.0.1/DB_HOST=16.113.106.152/g' .env + # Ensure web server owns the files after composer finishes writing caches sudo chown -R www-data:www-data storage bootstrap/cache + # Run database migrations + php artisan migrate --force + # 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