Skip to content

Commit

Permalink
Add magento docs
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning committed Apr 29, 2024
1 parent f1a04ed commit 6720d89
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/config/sentry.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,32 @@ All you need to do is set the `SENTRY_DSN` environment variable in your `.env` f
SENTRY_DSN=http:https://[email protected]:8000/1
```

## Magento 2

### Installation

Magento 2 is supported via the following package, you can read more about it [here](https://github.com/justbetter/magento2-sentry)

### Configuration

Refer to the [Configuration section](https://github.com/justbetter/magento2-sentry#configuration).

Either set

```dotenv
CONFIG__SENTRY__ENVIRONMENT__DSN=http:https://[email protected]:8000/1
```

or

```php
'sentry' => [
'dsn' => 'http:https://[email protected]:8000/1',
...
]
```
in the `app/etc/env.php`

## Other platforms

To report to Buggregator you’ll need to use a language-specific SDK. The Sentry team builds and maintains these for most
Expand Down
16 changes: 16 additions & 0 deletions docs/config/smtp.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,20 @@ MAILER_DSN=smtp:https://127.0.0.1:1025
MAIL_MAILER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
```

## Magento 2

```dotenv
CONFIG__DEFAULT__SYSTEM__SMTP__TRANSPORT="smtp"
CONFIG__DEFAULT__SYSTEM__SMTP__HOST="127.0.0.1"
CONFIG__DEFAULT__SYSTEM__SMTP__PORT="1025"
```

or

```bash
bin/magento config:set system/smtp/transport smtp
bin/magento config:set system/smtp/host 127.0.0.1
bin/magento config:set system/smtp/port 1025
```

0 comments on commit 6720d89

Please sign in to comment.