Skip to content

Commit

Permalink
disable rails-performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Nov 25, 2024
1 parent 9c11b2c commit 471371c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ gem "sidekiq-cron", "~> 2.0"
group :development, :production do
gem "sys-cpu", "~> 1.1"
gem "get_process_mem", "~> 1.0"
gem "rails_performance", "~> 1.4"
gem "redis-namespace"
# gem "rails_performance", "~> 1.4"
# gem "redis-namespace"
end

gem "pghero", "~> 3.6"
Expand Down
9 changes: 0 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ GEM
msgpack (~> 1.2)
brakeman (6.2.2)
racc
browser (6.1.0)
builder (3.3.0)
bullet (8.0.0)
activesupport (>= 3.0.0)
Expand Down Expand Up @@ -535,10 +534,6 @@ GEM
rails-settings-cached (2.9.5)
activerecord (>= 5.0.0)
railties (>= 5.0.0)
rails_performance (1.4.0)
browser
railties
redis
railties (7.2.2)
actionpack (= 7.2.2)
activesupport (= 7.2.2)
Expand Down Expand Up @@ -566,8 +561,6 @@ GEM
redis-client (>= 0.22.0)
redis-client (0.22.2)
connection_pool
redis-namespace (1.11.0)
redis (>= 4)
regexp_parser (2.9.2)
reline (0.5.11)
io-console (~> 0.5)
Expand Down Expand Up @@ -803,10 +796,8 @@ DEPENDENCIES
rails-controller-testing (~> 1.0)
rails-i18n (~> 7.0)
rails-settings-cached (~> 2.9)
rails_performance (~> 1.4)
ransack (~> 4.2)
redis (~> 5.3)
redis-namespace
rolify (~> 6.0)
rspec-rails
rubocop-factory_bot
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
resources :libraries, only: [:index]
end
mount Sidekiq::Web => "/admin/sidekiq"
mount RailsPerformance::Engine => "/admin/performance" unless Rails.env.test?
mount RailsPerformance::Engine => "/admin/performance" unless Rails.env.test? || ENV["RAILS_ASSETS_PRECOMPILE"].present?
mount PgHero::Engine => "/admin/pghero"
get "/activity" => "activity#index", :as => :activity
end
Expand Down

0 comments on commit 471371c

Please sign in to comment.