navari/laravel-auto-deploy is a Laravel package for laravel auto deploy module.
It currently has 1 GitHub stars and 3 downloads on Packagist (latest version 0.1).
Install it with composer require navari/laravel-auto-deploy.
Discover more Laravel packages by navari
or browse all Laravel packages to compare alternatives.
Last updated
Save yourself the stress of ssh-ing into your server everything you make a push to your
production or staging branch. Simply, have your servers, pick up the changes and run your deployment or
update scripts. It is as simple as echo "Hello World. This package only works for Github version control systems.
Require you having PHP and composer installed on your machine, and any Unix/Linux (or Mac) shell.
composer require navari/laravel-auto-deploy
config/app.php and find the providers array. Add the line below
to the end of the array:Navari\LaraDeploy\AutoDeployServiceProvider::class,
php artisan vendor:publish --tag=laradeploy
When ran, you will see two files created for you, the config/laradeploy.php and laradeploy.sh. You can delete or
modify the laradeploy.sh if you have your own script to run anytime the server pull some changes from your repository.
You will look into config/laradeploy.php to change the default settings we put in there.
Note that any changes you will want to make will always go into the file config/laradeploy.php.
We support one VCS for now, Github. Your setup webhook on either one will be listed in the routes array:
'routes' => [
'github' => 'github-webhook',
],
If you want to get notified anytime the server(s) pick up changes from
your repositories, you will have to change the subscribe key to true
and list email (or some emails) to send notifications to, in the config file.
You can list as many email as you want, and you can also change the template
(view) that will be sent as email.
It is worthy to note that we leverage your Laravel SMTP settings, which means you must have configured your Mail settings working before enabling this feature.
Guarding your Web hooks, simply means that you have set a default token to be identified with
Github or Bitbucket request to your web hook endpoint on the server — and we encourage this.
It will limit the endpoint to only authorized party. If you have a SECRET_TOKEN set up, add them to your
.env file as either:
GITHUB_DEPLOY_TOKEN=secret_token_xxxx
Any request made with mismatch token validation will be simply, rejected.