https://github.com/sohag-pro/laravel-deployer
No downtime deployment for Laravel project
https://github.com/sohag-pro/laravel-deployer
deployment laravel
Last synced: about 1 year ago
JSON representation
No downtime deployment for Laravel project
- Host: GitHub
- URL: https://github.com/sohag-pro/laravel-deployer
- Owner: sohag-pro
- Created: 2022-12-15T09:08:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-01T10:41:45.000Z (over 2 years ago)
- Last Synced: 2025-04-01T04:41:30.234Z (about 1 year ago)
- Topics: deployment, laravel
- Language: PHP
- Homepage:
- Size: 189 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel Deployer
## Note to Contributors: We're actively seeking your contributions!
Thank you for your interest in our project. We welcome contributions from anyone and everyone! Whether you're a developer, designer, or just someone who wants to help out, there are many ways you can contribute.
We're currently seeking contributions in the following areas:
- Feature requests
- Bug reports
- Code contributions
- Documentation improvements
If you're interested in contributing, please feel free to open an issue.
We value all contributions and appreciate your help in making our project better. Thank you!
## About Laravel Deployer
It's a no downtime deployer for laravel. You just need to set it up on your server, you will get a UI to deploy your laravel application.
How to setup locally
- Clone the repository
```bash
git clone https://github.com/sohag-pro/laravel-deployer.git
```
- Install dependencies
```bash
composer install
```
- Create a copy of your .env file
```bash
cp .env.example .env
```
- Generate an app encryption key
```bash
php artisan key:generate
```
- put the env variable in .env file
```bash
GIT_REMOTE_URL=https://github.com/sohag-pro/laravel-deployer.git
# full path from root from where the project will be server
# with a trailing slash
SERVE_DIR=/Users/sohag/Projects/deployer-test/www/
# full path from root from where the project will be cloned and all other operations will be done
# Should be different from SERVE_DIR and should be created manually before running the script
# with a trailing slash
BASE_DIR=/Users/sohag/Projects/deployer-test/
# where the backups will be stored
VERSION_DIR=backups
# where the storage will be linked
STORAGE_DIR=storage
# Where the dump SQL will be stored
DB_DIR=database
# which db to dump
DEPLOYER_DB_NAME=
# user to dump db
DEPLOYER_DB_USER=
# password to dump db
DEPLOYER_DB_PASSWORD=
```
- Run the local development server
```bash
php artisan serve
```
- Visit http://localhost:8000 in your browser
## License
The Laravel Deployer is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).