deployer/docs/contrib/bugsnag.md
Anton Medvedev 4bdf95ebda Update docs
2022-09-12 12:29:44 +02:00

42 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit contrib/bugsnag.php -->
<!-- Then run bin/docgen -->
# Bugsnag Recipe
```php
require 'contrib/bugsnag.php';
```
[Source](/contrib/bugsnag.php)
## Configuration
- *bugsnag_api_key* the API Key associated with the project. Informs Bugsnag which project has been deployed. This is the only required field.
- *bugsnag_provider* the name of your source control provider. Required when repository is supplied and only for on-premise services.
- *bugsnag_app_version* the app version of the code you are currently deploying. Only set this if you tag your releases with semantic version numbers and deploy infrequently. (Optional.)
## Usage
Since you should only notify Bugsnag of a successful deployment, the `bugsnag:notify` task should be executed right at the end.
```php
after('deploy', 'bugsnag:notify');
```
## Tasks
### bugsnag:notify
[Source](https://github.com/deployphp/deployer/blob/master/contrib/bugsnag.php#L23)
Notifies Bugsnag of deployment.