Laravel Git Hook
$ composer require webklex/laravel-git-hook
Add the service provider to the providers array in
'providers' => [ Webklex\GitHook\Providers\LaravelServiceProvider::class, ];
You can publish everything at once
php artisan vendor:publish --provider="Webklex\GitHook\Providers\LaravelServiceProvider"
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
||Get notified by mail. Just add your credentials|
||Specify a custom email sender address|
||Leave empty to auto detect the vcs root||Perhaps your repository is somehow specially structured, if that's the case, specify your repository path|
||If you want to secure the deployment process a bit more, whitelist the remote repository IPs|
||Your remote branch name|
||Where is the git binary located|
||Name of the logfile. It will be stored under storage/logs|
||Define your remote git service. This is required to identify the payload|
||Define the deployment url. Keep in mind, that the given parameter will be added to your app.url|
||If you have any commands that have to be called before a pull event, specify them here|
||If you have any commands that have to be called after a pull event, specify them here|
If you are concerned someone could guess it, use a more cryptic url such as:
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
Please see CHANGELOG for more information what has changed recently.
$ composer test
If you discover any security related issues, please email email@example.com instead of using the issue tracker.
- All Contributors
The MIT License (MIT). Please see License File for more information.