Package Data | |
---|---|
Maintainer Username: | shawnsandy |
Maintainer Contact: | shawnsandy04@gmail.com (Shawn Sandy) |
Package Create Date: | 2017-02-17 |
Package Last Update: | 2017-06-04 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 15:18:43 |
Package Statistics | |
---|---|
Total Downloads: | 8 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Use Laravel Collective's Remote (SSH) package to depoly your websites with the click of a button. Works on PC/MAC/Linux.
Via Composer
$ composer require shawnsandy/deploykit
Install the service provider
Add the DeploykitServiceProvider to the config/app.php
'providers' => [
/*
* Package Service Providers...
*/
//...
ShawnSandy\Deploykit\DeploykitServicesProvider::class,
Collective\Remote\RemoteServiceProvider::class,
//...
]
Next add the Facade to you config.php
'aliases' => [
// ...
'SSH' => Collective\Remote\RemoteFacade::class,
// ...
],
Publish vendor/packages assets
You can publish vendor files individually using --tag
option or all using --provider
Assets
php artisan vendor:publish --tag=deploykit-assets
Views
php artisan vendor:publish --tag=deploykit-views
Config
php artisan vendor:publish --tag=deploykit-config
Migrations
php artisan vendor:publish --tag=deploykit-migrations
Provider
Publishes all vendor files
php artisan vendor:publish --provider="ShawnSandy\Deploykit\DeploykitServicesProvider"
Add the dollowing lines to your routes\web.php
Route::group(['prefix' => 'deploy', 'middleware' => 'auth'], function (){
Route::resource('/', '\ShawnSandy\Deploykit\Controllers\DeployKitController');
Route::get('/connection/{connection}', '\ShawnSandy\Deploykit\Controllers\DeployController');
});
return [
'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,
];
Setup and configure Remote (SSH) #Config
Soon
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email shawnsandy04@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.