diff --git a/Gemfile b/Gemfile index fb4f4c7c..a5e5fed0 100644 --- a/Gemfile +++ b/Gemfile @@ -47,6 +47,7 @@ gem 'twemoji-rails' gem 'ruby-progressbar' gem 'rails_admin' +gem 'pghero' gem 'sidekiq' gem 'sinatra', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 12f49b05..dd36bb00 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -295,6 +295,8 @@ GEM cocaine (~> 0.5.3) mime-types pg (0.18.1) + pghero (1.1.1) + activerecord poltergeist (1.6.0) capybara (~> 2.1) cliver (~> 0.3.1) @@ -528,6 +530,7 @@ DEPENDENCIES omniauth-twitter paperclip (~> 4.2) pg + pghero poltergeist questiongenerator! rails (= 4.2.1) @@ -561,3 +564,6 @@ DEPENDENCIES web-console will_paginate will_paginate-bootstrap + +BUNDLED WITH + 1.10.6 diff --git a/app/views/layouts/_profile.html.haml b/app/views/layouts/_profile.html.haml index 24ca3437..9983862f 100644 --- a/app/views/layouts/_profile.html.haml +++ b/app/views/layouts/_profile.html.haml @@ -24,6 +24,11 @@ %a{href: sidekiq_web_path} %i.fa.fa-fw.fa-bar-chart = t('views.navigation.sidekiq') + %li + %a{href: pghero_path} + %i.fa.fa-fw.fa-database + Database Monitor + %li.divider - if current_user.mod? %li %a{href: moderation_path} diff --git a/config/routes.rb b/config/routes.rb index 87be1877..af0f1c34 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,6 +8,7 @@ Rails.application.routes.draw do constraints ->(req) { req.env["warden"].authenticate?(scope: :user) && req.env['warden'].user.admin? } do mount Sidekiq::Web, at: "/sidekiq" + mount PgHero::Engine, at: "/pghero", as: 'pghero' end # Moderation panel