Deploykit
![Software License][ico-license]
![Total Downloads][ico-downloads], (*1)
Use Laravel Collective's Remote (SSH) package to depoly your websites with the click of a button. Works on PC/MAC/Linux., (*2)
Screenshot
, (*3)
Install
Via Composer, (*4)
``` bash
$ composer require shawnsandy/deploykit, (*5)
## Usage
--------------
#### Quick Start
__Install the service provider__
Add the DeploykitServiceProvider to the `config/app.php`
``` php
'providers' => [
/*
* Package Service Providers...
*/
//...
ShawnSandy\Deploykit\DeploykitServicesProvider::class,
Collective\Remote\RemoteServiceProvider::class,
//...
]
Next add the Facade to you config.php, (*6)
``` php
'aliases' => [
// ...
'SSH' => Collective\Remote\RemoteFacade::class,
// ...
],, (*7)
```, (*8)
Publish vendor/packages assets, (*9)
You can publish vendor files individually using --tag option or all using --provider, (*10)
Assets, (*11)
``` bash, (*12)
php artisan vendor:publish --tag=deploykit-assets, (*13)
__Views__
``` bash
php artisan vendor:publish --tag=deploykit-views
Config, (*14)
``` bash, (*15)
php artisan vendor:publish --tag=deploykit-config, (*16)
__Migrations__
``` bash
php artisan vendor:publish --tag=deploykit-migrations
Provider, (*17)
Publishes all vendor files, (*18)
``` bash, (*19)
php artisan vendor:publish --provider="ShawnSandy\Deploykit\DeploykitServicesProvider", (*20)
__Add the dollowing lines to your `routes\web.php`__
``` php
Route::group(['prefix' => 'deploy', 'middleware' => 'auth'], function (){
Route::resource('/', '\ShawnSandy\Deploykit\Controllers\DeployKitController');
Route::get('/connection/{connection}', '\ShawnSandy\Deploykit\Controllers\DeployController');
});
Config options
``` php, (*21)
return [, (*22)
'commands' => [
"default" => ['cd /var/www', 'git pull', 'php artisan cache:clear'],
"migrate" => ['cd /var/www', 'git pull', 'php artisan migrate', 'php artisan cache:clear'],
"update" => ['cd /var/www', 'git pull', 'composer update', 'php artisan migrate', 'php artisan cache:clear'],
],
'limit_responses' => 200,
'responses_per_page' => 20,
];, (*23)
__Setup and configure Remote (SSH)__ [#Config](https://laravelcollective.com/docs/5.3/ssh#configuration)
### Advanced Usage
Soon
## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Testing
``` bash
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details., (*24)
Security
If you discover any security related issues, please email shawnsandy04@gmail.com instead of using the issue tracker., (*25)
Credits
License
The MIT License (MIT). Please see License File for more information., (*26)