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`