tendersrl/bugsnag-deployer-recipe

Simple package to set your app version on Bugsnag when deploying

v1.0.1 2021-07-01 15:12 UTC

This package is auto-updated.

Last update: 2024-04-29 04:27:56 UTC


README

Simple package to set your app version on Bugsnag in Laravel project when deploying

Latest Version on Packagist Build Status StyleCI MIT licensed Total Downloads

Description

This package provides a Deployer recipe to let you call Bugsnag php artisan bugsnag:deploy command in your Laravel project when deploying.

Install

Via Composer

$ composer require tendersrl/bugsnag-deployer-recipe

Usage

Add in your AppServiceProvider the app version ti report on Bugsnag, as described in Bugsnag documentation

public function boot()
{
    Bugsnag::setAppVersion('v1.2.3');
}

Note You don't need to register the DeployCommand command in your app/Console/Kernel.php file as this package do that for you.

Lastly import the Recipe vendor/tendersrl/bugsnag-deployer-recipe/recipes/BugsnagRecipe.php in your deployer.php file

require 'vendor/tendersrl/bugsnag-deployer-recipe/recipes/BugsnagRecipe.php';

and add the task artisan:bugsnag:deploy as your last task (after deploy is done).

after('your:last:task', 'artisan:bugsnag:deploy');

Minimum requirements

  • Laravel 5.5
  • PHP 7.0

License

This package is licensed under the MIT License