From eafe7a9a38a3647d05d0ae0cb93af757c49db3aa Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Sun, 17 Mar 2024 22:08:00 +0100 Subject: [PATCH] Actually add sentry, also add libnss3 dependency --- Dockerfile | 2 +- config/initializers/sentry.rb | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 config/initializers/sentry.rb diff --git a/Dockerfile b/Dockerfile index 85699c6..bd50d47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app # Install Yarn RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list -RUN apt update && apt install -y yarn xvfb +RUN apt update && apt install -y yarn xvfb libnss3 COPY ./Gemfile ./Gemfile.lock /app/ diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb new file mode 100644 index 0000000..43198b8 --- /dev/null +++ b/config/initializers/sentry.rb @@ -0,0 +1,6 @@ +Sentry.init do |config| + config.dsn = ENV["SENTRY_DSN"] + config.breadcrumbs_logger = [:active_support_logger, :http_logger] + config.enabled_environments = %w[production] + config.debug = ENV.fetch("SENTRY_DEBUG", false) +end