Add pghero for analyzing postgres performance in production
This commit is contained in:
parent
4ea13d8dc9
commit
6471a548fe
1
Gemfile
1
Gemfile
@ -12,6 +12,7 @@ gem 'puma'
|
|||||||
|
|
||||||
gem 'hamlit-rails'
|
gem 'hamlit-rails'
|
||||||
gem 'pg'
|
gem 'pg'
|
||||||
|
gem 'pghero'
|
||||||
gem 'dotenv-rails'
|
gem 'dotenv-rails'
|
||||||
gem 'font-awesome-rails'
|
gem 'font-awesome-rails'
|
||||||
|
|
||||||
|
@ -197,6 +197,8 @@ GEM
|
|||||||
parser (2.3.1.2)
|
parser (2.3.1.2)
|
||||||
ast (~> 2.2)
|
ast (~> 2.2)
|
||||||
pg (0.18.4)
|
pg (0.18.4)
|
||||||
|
pghero (1.6.2)
|
||||||
|
activerecord
|
||||||
powerpack (0.1.1)
|
powerpack (0.1.1)
|
||||||
pry (0.10.4)
|
pry (0.10.4)
|
||||||
coderay (~> 1.1.0)
|
coderay (~> 1.1.0)
|
||||||
@ -403,6 +405,7 @@ DEPENDENCIES
|
|||||||
paperclip (~> 4.3)
|
paperclip (~> 4.3)
|
||||||
paperclip-av-transcoder
|
paperclip-av-transcoder
|
||||||
pg
|
pg
|
||||||
|
pghero
|
||||||
pry-rails
|
pry-rails
|
||||||
puma
|
puma
|
||||||
rabl
|
rabl
|
||||||
|
@ -5,6 +5,7 @@ Rails.application.routes.draw do
|
|||||||
|
|
||||||
authenticate :user, lambda { |u| u.admin? } do
|
authenticate :user, lambda { |u| u.admin? } do
|
||||||
mount Sidekiq::Web => '/sidekiq'
|
mount Sidekiq::Web => '/sidekiq'
|
||||||
|
mount PgHero::Engine, at: 'pghero'
|
||||||
end
|
end
|
||||||
|
|
||||||
use_doorkeeper do
|
use_doorkeeper do
|
||||||
|
Loading…
Reference in New Issue
Block a user