# HG changeset patch # User nanaya # Date 1734269474 -32400 # Node ID 300bac9446741e2ae9c18e3f80e20e0a849cd3ce # Parent 3adab940b09082770d5b1537e521db45b1bcd45d Remove newrelic To be replaced with sentry (maybe). diff -r 3adab940b090 -r 300bac944674 .hgignore --- a/.hgignore Sun Dec 15 22:19:46 2024 +0900 +++ b/.hgignore Sun Dec 15 22:31:14 2024 +0900 @@ -2,7 +2,6 @@ ^app/assets/builds$ ^config/config_local_(\w+)\.rb$ ^config/database\.yml$ -^config/newrelic\.yml$ ^config/unicorn\.rb$ ^log$ ^node_modules$ diff -r 3adab940b090 -r 300bac944674 Gemfile --- a/Gemfile Sun Dec 15 22:19:46 2024 +0900 +++ b/Gemfile Sun Dec 15 22:31:14 2024 +0900 @@ -23,8 +23,4 @@ # To use debugger # gem "ruby-debug" -group :newrelic do - gem "newrelic_rpm" -end - gem "puma", :require => false diff -r 3adab940b090 -r 300bac944674 Gemfile.lock --- a/Gemfile.lock Sun Dec 15 22:19:46 2024 +0900 +++ b/Gemfile.lock Sun Dec 15 22:31:14 2024 +0900 @@ -118,7 +118,6 @@ timeout net-smtp (0.5.0) net-protocol - newrelic_rpm (9.16.1) nio4r (2.7.4) nokogiri (1.17.2) mini_portile2 (~> 2.8.2) @@ -208,7 +207,6 @@ DEPENDENCIES autoprefixer-rails jsbundling-rails - newrelic_rpm pg puma rails (~> 8.0.0) diff -r 3adab940b090 -r 300bac944674 config/config_init.rb --- a/config/config_init.rb Sun Dec 15 22:19:46 2024 +0900 +++ b/config/config_init.rb Sun Dec 15 22:31:14 2024 +0900 @@ -1,6 +1,5 @@ $cfg = {} $cfg[:secret_key] = ENV["ZP_SECRET_KEY"] -$cfg[:newrelic] = ENV["ZP_NEWRELIC"] == 1 env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" config_local = File.expand_path("config_local_#{env}.rb", __dir__) @@ -8,11 +7,9 @@ require config_local if File.exist? config_local $cfg[:standalone] = true if $cfg[:standalone].nil? -$cfg[:newrelic] = false if $cfg[:newrelic].nil? $cfg[:log_to_stdout] = true if $cfg[:log_to_stdout].nil? $cfg[:bundler_groups] ||= [:default, env] $cfg[:bundler_groups] << "standalone" if $cfg[:standalone] -$cfg[:bundler_groups] << "newrelic" if $cfg[:newrelic] $cfg.freeze diff -r 3adab940b090 -r 300bac944674 config/config_local_env.rb.example --- a/config/config_local_env.rb.example Sun Dec 15 22:19:46 2024 +0900 +++ b/config/config_local_env.rb.example Sun Dec 15 22:31:14 2024 +0900 @@ -9,11 +9,4 @@ # - JRuby and Rubinius: Puma # $cfg[:standalone] = true -# Set to true to use newrelic monitoring. -# Don't forget to put your newrelic.yml in config directory. -# Default: false -# $cfg[:newrelic] = false -# Or set environment variable ZP_NEWRELIC to 1 -# - # If you want to deploy with just environment variable, also set ZP_DATABASE_URL or DATABASE_URL.