Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
/ Orion Public archive

Commit

Permalink
Merge pull request #96 from Siderus/bugfix/107-use-sentry-env
Browse files Browse the repository at this point in the history
Distinguish between errors coming from releases and errors coming from development
  • Loading branch information
koalalorenzo authored May 5, 2018
2 parents 847eb10 + cd2148a commit aafadcb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ stages:
- test
- release

before_script:
- mv package.json package.json.old
- cat package.json.old | jq 'to_entries | map(if .key == "env" then .value = "release" else . end) | from_entries' > package.json
- rm -f package.json.old

yarn-test:
stage: test
tags:
Expand Down
3 changes: 1 addition & 2 deletions app/report.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const pjson = require('../package.json')
const { init } = require('@sentry/electron')
const { env } = require('process')

init({
dsn: 'https://4b375cfe65e64f2aafbc2f701d1398d0@sentry.io/1189440',
release: `${pjson.version}/IPFS-${pjson.ipfsVersion}`,
environment: `${env.NODE_ENV}`
environment: `${pjson.env}`
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "Orion",
"version": "0.2.2",
"env": "development",
"ipfsVersion": "v0.4.14",
"description": "Orion is an easy-to-use and KISS IPFS desktop interface",
"main": "app/entry.js",
Expand Down

0 comments on commit aafadcb

Please sign in to comment.