mttzzz/laravel-deploy

Deploy from GitHub

This package's canonical repository appears to be gone and the package has been frozen as a result.

1.6 2020-09-08 08:01 UTC

This package is auto-updated.

Last update: 2024-02-08 15:41:58 UTC


README

Install

composer require mttzzz/laravel-deploy

Publish config

php artisan vendor:publish --provider Mttzzz\LaravelDeploy\LaravelDeployServiceProvider

Edit app/config/deploy.php and fill your webhook secret or add env variables.

return [
// Webhook deploy secret 
    'sercet' => env('DEPLOY_SECRET', '1234567'),
];

Usage

  • Create GitHub Webhook in repository settings
  • Fill payload URL https://yourdomain.com/deploy
  • Choose contentType - application/json
  • Fill secret from your deploy.php
  • Add to /etc/sudoers : www-data ALL=(your-git-user) NOPASSWD:ALL