Laravel Forge has announced a new feature that promises zero downtime deployments, thanks to a seamless integration with Laravel Envoyer. The integration ensures that even those brief milliseconds of downtime are avoided while the server updates the code.
How it Works
Linking new sites to Envoyer projects within Forge is now incredibly straightforward, and the system will automatically ensure server addition and proper SSH access configuration. The capability to connect existing sites will also be introduced soon.
To use this feature, active Forge and Envoyer subscriptions are required, then you create a new API token in your Envoyer dashboard with the following minimum scopes:
These scopes allow Forge to interact with Envoyer. You can then link Forge with the Envoyer API token, following which they will see a new option labeled "Configure with Envoyer" when creating a new site.
Deploying an Envoyer project within Forge is as simple as clicking the "Deploy Now" button, just like deploying any other site. The system is now updated to align perfectly with Envoyer projects, including specific commands, environment panel adjustments, and disabled site's Packages panel.
View the full announcement on these changes here.