~singpolyma/jmp-pay

cd1aa36d0b5efc88a4160318329cee2098db0c2e — Stephen Paul Weber 1 year, 3 months ago 2f06095
include sentry when there is a dsn
2 files changed, 3 insertions(+), 0 deletions(-)

M config.ru
M views/layout.slim
M config.ru => config.ru +2 -0
@@ 7,6 7,7 @@ require "dhall"
require "pg"
require "redis"
require "roda"
require "uri"

if ENV["RACK_ENV"] == "development"
	require "pry-rescue"


@@ 211,6 212,7 @@ class UnknownTransactions
end

class JmpPay < Roda
	SENTRY_DSN = ENV["SENTRY_DSN"] && URI(ENV["SENTRY_DSN"])
	plugin :render, engine: "slim"
	plugin :common_logger, $stdout


M views/layout.slim => views/layout.slim +1 -0
@@ 4,5 4,6 @@ html
		meta charset="utf-8"
		meta content="width=device-width, initial-scale=1" name="viewport"
		title JMP Pay
		script src="https://js.sentry-cdn.com/#{SENTRY_DSN&.user}.min.js" crossorigin="anonymous"
	body
		== yield