Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lorisleiva/laravel-deployer
🚀 Zero-downtime deployment out-of-the-box
https://github.com/lorisleiva/laravel-deployer
artisan deployment laravel
Last synced: 4 days ago
JSON representation
🚀 Zero-downtime deployment out-of-the-box
- Host: GitHub
- URL: https://github.com/lorisleiva/laravel-deployer
- Owner: lorisleiva
- Created: 2018-03-09T15:28:10.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-02-26T08:28:26.000Z (almost 2 years ago)
- Last Synced: 2024-11-23T21:20:26.290Z (29 days ago)
- Topics: artisan, deployment, laravel
- Language: PHP
- Size: 1.96 MB
- Stars: 1,673
- Watchers: 37
- Forks: 168
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 🚀 Laravel Deployer
> Looking for the old Laravel Deployer? [Click here](https://github.com/lorisleiva/laravel-deployer/tree/old).
Laravel Deployer is no longer the package it used to be. Since that package was created, [Deployer](https://github.com/deployphp/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](https://twitter.com/lorismatic/status/1376519608207867907?s=20).
I've written a series of tutorials to help Laravel users deploy their application using Deployer directly.
[Deploy your Laravel app from scratch](https://lorisleiva.com/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](https://github.com/deployphp/deployer) to your dependencies.
```shell
composer require deployer/deployer:^7.0
```
- Copy/paste the [`deploy.yaml`](./deploy.yaml) or [`deploy.php`](./deploy.php) file of this repository to the root of your project.
- Update the `deploy.yaml` or `deploy.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.