Menu

Zero Downtime Laravel Deployments Made Easy with phantomshift/laravel-deployer
🖼️

Zero Downtime Laravel Deployments Made Easy with phantomshift/laravel-deployer

DEV Community·Hussain·6 months ago
#j21Hd78J
#laravel#php#devops#opensource#deployer
Reading 0:00
15s threshold
Cover image for Zero Downtime Laravel Deployments Made Easy with phantomshift/laravel-deployer

Hussain

Deploying Laravel without downtime is painful. 502 errors, failed migrations, manual rollback - we've all been there.

So I built phantomshift/laravel-deployer - a Blue-Green deployment package for Laravel.

Why?

  1. Zero Downtime: Switches between 'blue' and 'green' releases. Users see nothing.
  2. Auto Rollback: Deployment fails? It auto-reverts to last working version.
  3. Laravel Native: Works with Laravel 10, 11, 12. Uses Artisan commands.

Install


bash
composer require phantomshift/laravel-deployer
php artisan deployer:install

Enter fullscreen mode Exit fullscreen mode