https://github.com/finagin/envoy
🤾♂️ Laravel Envoy Delpoy Script
https://github.com/finagin/envoy
deploy deployment envoy laravel laravel-envoy php script
Last synced: 10 months ago
JSON representation
🤾♂️ Laravel Envoy Delpoy Script
- Host: GitHub
- URL: https://github.com/finagin/envoy
- Owner: finagin
- License: mit
- Created: 2017-11-10T10:03:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-10T08:36:10.000Z (almost 8 years ago)
- Last Synced: 2025-01-30T14:19:24.714Z (about 1 year ago)
- Topics: deploy, deployment, envoy, laravel, laravel-envoy, php, script
- Language: HTML
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# envoy - deployment script
## Usage
1) Your must have Envoy installed using the Composer global command:
```bash
composer global require "laravel/envoy=~1.0"
```
0) Call installer into root project directory to copy `Envoy.blade.php` and append environment variables into `.env` and `.env.example`
* Using `curl`
```bash
curl -sSL https://finagin.github.io/envoy | sh
```
* Or `wget`
```bash
wget -qO- https://finagin.github.io/envoy | sh
```
0) Create `.env.deploy` if u want.
0) Setting up enviroment variables in `.env` file.
* `DEPLOY_SERVER`
* `DEPLOY_REPOSITORY`
* `DEPLOY_PATH`
* Like this:
```bash
DEPLOY_SERVER=deploy@earth
DEPLOY_REPOSITORY=git@github.com:finagin/mailer.git
DEPLOY_PATH=/var/www/mailer
```
* ***Important!*** Make sure that the user has permissions to clone the repository
0) Run command `init` to initialize project on server
```bash
envoy run init
```
0) Edit `$DEPLOY_PATH/.env` file on server if u need. ex:`/var/www/mailer/.env`
0) Run `deploy` command for **first** deploy.
```bash
envoy run deploy
```
Also u can use options like `--branch=BRANCH` and `--env=ENV`
0) After **second** deploy u may use `rollback` command
```bash
envoy run rollback
```