diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-07 09:57:21 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-09 17:21:39 +0200 |
commit | 47054451da0a3aa80cae02c8a096338c23be7b9b (patch) | |
tree | 119ed6c7c6e304eb6f81ace93eaf65e1c3656d2a /config | |
parent | 406b351137f73e4d454b76f29b45376acc3c2694 (diff) | |
download | gitlab-ce-47054451da0a3aa80cae02c8a096338c23be7b9b.tar.gz |
Don't use Pygment,rb, use Rouge instead, and put peek-pg in the :postgres group
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/peek.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/initializers/peek.rb b/config/initializers/peek.rb index 6cb0e711e48..a8669ddba97 100644 --- a/config/initializers/peek.rb +++ b/config/initializers/peek.rb @@ -2,7 +2,13 @@ Rails.application.config.peek.adapter = :redis, { client: ::Redis.new(Gitlab::Re Peek.into Peek::Views::Host Peek.into Peek::Views::PerformanceBar -Peek.into Gitlab::Database.mysql? ? Peek::Views::Mysql2 : Peek::Views::PG +if Gitlab::Database.mysql? + require 'peek-mysql' + Peek.into Peek::Views::Mysql2 +else + require 'peek-pg' + Peek.into Peek::Views::PG +end Peek.into Peek::Views::Redis Peek.into Peek::Views::Sidekiq Peek.into Peek::Views::Rblineprof |