Skip to content

Commit

Permalink
Update openshift.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti authored Oct 6, 2023
1 parent e618b89 commit 225a2e0
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions documentation/openshift.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,14 @@ See the [deployment](/docker/openshift/entrypoints/20-deploy.sh) script for more

### Handling failures

In case of a failure, an error message is sent to a configured Slack channel. See [notify.php](/docker/openshift/notify.php) script for more documentation.
In case of a failure, an error message is sent to a configured Sentry instance. See [notify.php](/docker/openshift/notify.php) script for more documentation.

In order to use this feature, you must add `HelfiDev notifications` app (or create your own application) to your Slack channel and define the following environment variables:
In order to use this feature, you must define the following environment variables:

```bash
# You can find this value by right-clicking the channel name and selecting
# Copy -> Copy link. The last part of the link should be the channel ID.
SLACK_CHANNEL_ID=your-slack-channel-id
```

```bash
# The authorization token for your Slack application.
# You can get this value by contacting the Hel.fi development team.
SLACK_AUTHORIZATION=authorization-token
SENTRY_DSN=your-sentry-dsn
# Should be same as APP_ENV
SENTRY_ENVIRONMENT=environment
```

See https://helsinkisolutionoffice.atlassian.net/wiki/spaces/HEL/pages/6785826654/Ymp+rist+muuttujien+lis+ys+Azure+DevOpsissa for more documentation (in Finnish) on how to define environment variables.
Expand Down

0 comments on commit 225a2e0

Please sign in to comment.