commit: 6471a548feadf34d65fb96660f958bf808331c8f
parent: 4ea13d8dc9f3c80d4ca39f382662cd0463670f77
Author: Eugen Rochko <eugen@zeonfederated.com>
Date: Fri, 4 Nov 2016 18:35:04 +0100
Add pghero for analyzing postgres performance in production
Diffstat:
3 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Gemfile b/Gemfile
@@ -12,6 +12,7 @@ gem 'puma'
gem 'hamlit-rails'
gem 'pg'
+gem 'pghero'
gem 'dotenv-rails'
gem 'font-awesome-rails'
diff --git a/Gemfile.lock b/Gemfile.lock
@@ -197,6 +197,8 @@ GEM
parser (2.3.1.2)
ast (~> 2.2)
pg (0.18.4)
+ pghero (1.6.2)
+ activerecord
powerpack (0.1.1)
pry (0.10.4)
coderay (~> 1.1.0)
@@ -403,6 +405,7 @@ DEPENDENCIES
paperclip (~> 4.3)
paperclip-av-transcoder
pg
+ pghero
pry-rails
puma
rabl
diff --git a/config/routes.rb b/config/routes.rb
@@ -5,6 +5,7 @@ Rails.application.routes.draw do
authenticate :user, lambda { |u| u.admin? } do
mount Sidekiq::Web => '/sidekiq'
+ mount PgHero::Engine, at: 'pghero'
end
use_doorkeeper do