Update README with CI/CD pipeline documentation
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Added comprehensive information about the Drone CI pipeline, deployment servers, and automated migration process.
This commit is contained in:
18
README.md
18
README.md
@@ -69,3 +69,21 @@ That's it! You now know how to install, run, and configure this Laravel project.
|
|||||||
|
|
||||||
## Note
|
## Note
|
||||||
Note that the server configuration should refer to `public/index.php`, not `server.php`
|
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`
|
||||||
|
|||||||
Reference in New Issue
Block a user