byancode/deploy

There is no license information available for the latest version (dev-main) of this package.

Deploy your laravel with git to server

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 1

Type:laravel

dev-main 2021-02-01 00:28 UTC

This package is auto-updated.

Last update: 2024-09-29 05:56:09 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