debian-mirror-gitlab/debian/patches/0108-make-mysql-optional.patch

24 lines
738 B
Diff
Raw Normal View History

2016-01-23 21:05:43 +05:30
From 85ec69dca3e07b27079efe1392574d7fb317186f Mon Sep 17 00:00:00 2001
From: Pirate Praveen <praveen@debian.org>
Date: Sat, 23 Jan 2016 10:14:15 -0500
Subject: [PATCH] allow specifying DB choice via ENV variable
---
Gemfile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
2017-08-17 23:00:15 +05:30
--- a/Gemfile
+++ b/Gemfile
2019-07-31 23:45:35 +05:30
@@ -14,8 +14,9 @@
2019-02-15 18:28:22 +05:30
gem 'gitlab-default_value_for', '~> 3.1.1', require: 'default_value_for'
2016-01-23 21:05:43 +05:30
# Supported DBs
2018-03-18 12:27:51 +05:30
-gem 'mysql2', '~> 0.4.10', group: :mysql
-gem 'pg', '~> 1.1', group: :postgres
2018-03-18 12:27:51 +05:30
+ENV["DB"] ||= "postgresql"
+gem 'mysql2', '~> 0.4.10' if ENV["DB"] == "all" || ENV["DB"] == "mysql"
+gem 'pg', '~> 1.1' if ENV["DB"] == "all" || ENV["DB"] == "postgres"
2016-01-23 21:05:43 +05:30
2019-05-18 01:04:41 +05:30
gem 'rugged', '~> 0.28'
2019-07-31 23:45:35 +05:30
gem 'grape-path-helpers', '~> 1.1'