deployer/docs/contrib/bugsnag.md

42 lines
1.0 KiB
Markdown
Raw Normal View History

2021-09-26 15:25:58 +02:00
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit contrib/bugsnag.php -->
<!-- Then run bin/docgen -->
2022-07-26 09:18:44 +02:00
# Bugsnag Recipe
2021-09-26 15:25:58 +02:00
2022-09-12 12:29:44 +02:00
```php
require 'contrib/bugsnag.php';
```
2021-09-26 15:25:58 +02:00
2022-09-12 12:29:44 +02:00
[Source](/contrib/bugsnag.php)
2021-09-26 15:25:58 +02:00
2021-11-06 19:02:51 +01:00
2021-09-26 15:25:58 +02:00
## 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
2022-09-12 12:29:44 +02:00
[Source](https://github.com/deployphp/deployer/blob/master/contrib/bugsnag.php#L23)
2021-09-26 15:25:58 +02:00
2021-11-08 22:59:39 +01:00
Notifies Bugsnag of deployment.
2021-09-26 15:25:58 +02:00