Laravel Forge Introduces Zero Downtime Deployments with Envoyer Integration
Published on by Eric L. Barnes
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.
Getting Started
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:
-
deployments:create
-
projects:create
-
servers:create
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.
Deployment
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.
Read more
View the full announcement on these changes here.
Eric is the creator of Laravel News and has been covering Laravel since 2012.