webklex / laravel-git-hook
Laravel Git Hook
Installs: 1 137
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 4
Forks: 3
Open Issues: 2
Requires
- php: >=5.5.9
- laravel/framework: >=5.0.0
README
Install
Via Composer
$ composer require webklex/laravel-git-hook
Setup
Add the service provider to the providers array in config/app.php
.
'providers' => [ Webklex\GitHook\Providers\LaravelServiceProvider::class, ];
Publishing
You can publish everything at once
php artisan vendor:publish --provider="Webklex\GitHook\Providers\LaravelServiceProvider"
Usage
This library is designed to handle the automatic deployment by git hooks
as simple as possible. There isn't much todo to get started: just add the
Provider and edit the config/git-hook.php
file to make it fit your needs.
Custom configuration can be made within the config/git-hook.php
file:
If you are concerned someone could guess it, use a more cryptic url such as: JHFUjhd67567JHFGhsd78236784wegfJHFghdgf
Potential problems:
Please make sure your www-data
user can actually perform a git pull on the server without
having to enter a password:
so you might want to take a look at ssh-keys or something similar
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Security
If you discover any security related issues, please email github@webklex.com instead of using the issue tracker.
Credits
- Webklex
- All Contributors
License
The MIT License (MIT). Please see License File for more information.