lorisleiva / laravel-deployer
Laravel Deployer is a lightweight wrapper of Deployer giving Artisan the power of zero-downtime deployment.
Installs: 1 197 476
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1 673
Watchers: 37
Forks: 167
Open Issues: 0
Requires
- deployer/deployer: ^6.1
- deployer/recipes: ^6.0
- illuminate/support: ^5.8|^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^3.8|^4.0|^5.0|^6.0
This package is auto-updated.
Last update: 2024-12-17 19:15:00 UTC
README
Looking for the old Laravel Deployer? Click here.
Laravel Deployer is no longer the package it used to be. Since that package was created, Deployer has become better and better at integrating with Laravel to the point that I will now put my efforts into maintaining Deployer directly for Laravel users rather than mirroring its changes on a different repo after each release. You can read more about this decision here.
I've written a series of tutorials to help Laravel users deploy their application using Deployer directly.
Deploy your Laravel app from scratch.
If you prefer a quick guide to get started with Deployer 7, I've added one for you below.
Deploy your Laravel application using Deployer 7
- Add Deployer to your dependencies.
composer require deployer/deployer:^7.0
- Copy/paste the
deploy.yaml
ordeploy.php
file of this repository to the root of your project. - Update the
deploy.yaml
ordeploy.php
with your own server details. - Run
dep deploy
to deploy once. - Run
dep ssh
to connect to your server via SSH. - Run
cp .env.example .env && php artisan key:generate
to initialize your.env
file. - Run
vim .env
and update your production environment variables. - Exit your server —
exit
. - Run
dep deploy
once more now that your.env
file is all set up.