Skip to content

Commit 7c1b3d9

Browse files
authored
Merge pull request #23 from indykoning/feature/magento-docs
Add magento docs
2 parents f1a04ed + 6720d89 commit 7c1b3d9

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

docs/config/sentry.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,32 @@ All you need to do is set the `SENTRY_DSN` environment variable in your `.env` f
4646
SENTRY_DSN=http://[email protected]:8000/1
4747
```
4848

49+
## Magento 2
50+
51+
### Installation
52+
53+
Magento 2 is supported via the following package, you can read more about it [here](https://github.com/justbetter/magento2-sentry)
54+
55+
### Configuration
56+
57+
Refer to the [Configuration section](https://github.com/justbetter/magento2-sentry#configuration).
58+
59+
Either set
60+
61+
```dotenv
62+
CONFIG__SENTRY__ENVIRONMENT__DSN=http://[email protected]:8000/1
63+
```
64+
65+
or
66+
67+
```php
68+
'sentry' => [
69+
'dsn' => 'http://[email protected]:8000/1',
70+
...
71+
]
72+
```
73+
in the `app/etc/env.php`
74+
4975
## Other platforms
5076

5177
To report to Buggregator you’ll need to use a language-specific SDK. The Sentry team builds and maintains these for most

docs/config/smtp.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,20 @@ MAILER_DSN=smtp://127.0.0.1:1025
2222
MAIL_MAILER=smtp
2323
MAIL_HOST=127.0.0.1
2424
MAIL_PORT=1025
25+
```
26+
27+
## Magento 2
28+
29+
```dotenv
30+
CONFIG__DEFAULT__SYSTEM__SMTP__TRANSPORT="smtp"
31+
CONFIG__DEFAULT__SYSTEM__SMTP__HOST="127.0.0.1"
32+
CONFIG__DEFAULT__SYSTEM__SMTP__PORT="1025"
33+
```
34+
35+
or
36+
37+
```bash
38+
bin/magento config:set system/smtp/transport smtp
39+
bin/magento config:set system/smtp/host 127.0.0.1
40+
bin/magento config:set system/smtp/port 1025
2541
```

0 commit comments

Comments
 (0)