Skip to content

Commit

Permalink
Actually add sentry, also add libnss3 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed Mar 17, 2024
1 parent d48cb5b commit eafe7a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down
6 changes: 6 additions & 0 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eafe7a9

Please sign in to comment.