From 3391c0b05764280accf170483f09e2a108a8ea7c Mon Sep 17 00:00:00 2001 From: vickytechkey Date: Tue, 8 Sep 2026 20:55:56 +0530 Subject: [PATCH] Configure PostgreSQL host and run migrations --- .forgejo/workflows/setup-ec2.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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