byancode / deploy
There is no license information available for the latest version (dev-main) of this package.
Deploy your laravel with git to server
dev-main
2021-02-01 00:28 UTC
Requires
- php: >=7.0
- laravel/framework: >=7.0
- phpseclib/phpseclib: ~2.0
This package is auto-updated.
Last update: 2026-03-01 00:33:49 UTC
README
perform a push in Github and a pull in your server
Getting Started
Requisites
1.1. Install servidor
Run the following command:
yum install git git config --global user.name "username" git config --global user.email "my@github.email"
1.2. Generate SSH public and private keys
ssh-keygen -t rsa -b 4096 -C "my@github.email"
1.3. Register SSH public key
1.4. Clone project
cd /www/repositories
git clone git@github.com:username/repository.git
2.1. Install Laravel
Run the following command:
composer require byancode/deploy
2.2. Register (for Laravel > 7.0)
Register the service provider in config/app.php
Byancode\Deploy\Providers\DeployProvider::class,
2.3. Publish
Publish config file.
php artisan vendor:publish --provider="Byancode\Deploy\Providers\DeployProvider"
2.4. Configure
You can change the options of your app from config/deploy.php file
Usage
*Note: only laravel git project
php artisan deploy:run --commit="My first deploy" --git --yarn --composer