{% load i18n %}
{% blocktrans with 'https://github.com/mattrobenolt/raven-java' as link %}Start by installing raven-node:{% endblocktrans %}
npm install raven
{% trans "Register an instance of the Express middleware:" %}
var app = require('express').createServer(); app.error(raven.middleware.express('{% if dsn %}{{ dsn }}{% else %}SENTRY_DSN{% endif %}'));
{% trans "Ensure Node is run with NODE_ENV=production
:" %}
NODE_ENV=production node script.js
{% trans "That's it! Raven automatically installs an error handling hook to pipe all uncaught exceptions to Sentry." %}
{% blocktrans with 'https://github.com/mattrobenolt/raven-node' as link %}For more information on other uses of Raven with Node.js, please see the official documentation for raven-node.{% endblocktrans %}