]> khamidou — GitHub mirrors - electron-breakpad-sentry.git/commitdiff
Better README.
authorKarim Hamidou <khamidou@gmail.com>
Thu, 23 Mar 2017 21:13:51 +0000 (14:13 -0700)
committerKarim Hamidou <khamidou@gmail.com>
Thu, 23 Mar 2017 21:13:51 +0000 (14:13 -0700)
README.md

index 9cba45e5747049a065f2f9971b78aae77d4b2c84..f1f74a78ca9bc0476046173c42d79e168d60540b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,2 +1,25 @@
 # heroku-breakpad-sentry
-Forward breakpad logs to sentry
+
+This is a tiny app to forward Electron breakpad errors to Sentry. It uses Heroku because it's great for low-key services like this one which run in the background.
+
+## Setup
+
+1. Deploy this app to Heroku.
+2. Set the SENTRY_DSN environment variable to the value of the Sentry project you're using.
+3. Set up your electron project to forward errors to this app. Usually something like this should be enough:
+```
+const { app, crashReporter } = require('electron');
+
+app.on('ready', () => {
+ crashReporter.start({
+ productName: 'YourAppName',
+ companyName: 'YourCompany',
+ submitURL: '$YOUR_HEROKU_APP_URL/crashreport',
+ autoSubmit: true
+ });
+```
+4. Profit!
+
+## Bug, remarks, questions?
+
+If you've found any bug, please let me know by opening a new issue.