From e307885faf982a5c09c9fc3f339ba5db6e8fd608 Mon Sep 17 00:00:00 2001 From: Joris Slagter Date: Tue, 2 Dec 2025 17:54:34 +0100 Subject: [PATCH] Update README with CI/CD pipeline documentation Added comprehensive information about the Drone CI pipeline, deployment servers, and automated migration process. --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 9d29c81..f0afc3d 100644 --- a/README.md +++ b/README.md @@ -69,3 +69,21 @@ That's it! You now know how to install, run, and configure this Laravel project. ## Note Note that the server configuration should refer to `public/index.php`, not `server.php` + +## CI/CD Pipeline + +This repository uses Drone CI for automated testing and deployment: + +- **Test**: Composer validation and dependency installation +- **Deploy to Staging**: Automatic deployment + migrations on push to `main` or `develop` branches +- **Deploy to Production**: Manual promotion required + queue restart + +### Deployment Servers + +- **Staging**: 159.223.242.61 → `/var/www/laravel/current` +- **Production**: 152.42.148.137 → `/var/www/laravel/current` +- **Deployment Script**: `/opt/deploy-scripts/deploy-laravel.sh` + +Database migrations run automatically during deployment: +- **Staging**: `php artisan migrate --force` +- **Production**: `php artisan migrate --force` + `php artisan queue:restart`