changeset 498:300bac944674

Remove newrelic To be replaced with sentry (maybe).
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:31:14 +0900
parents 3adab940b090
children d2ef59c9a4b4
files .hgignore Gemfile Gemfile.lock config/config_init.rb config/config_local_env.rb.example
diffstat 5 files changed, 0 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- 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$
--- 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
--- 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)
--- 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
--- 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.