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(-)
|
|
|
|
|
|
|
|
Index: gitlab/Gemfile
|
|
|
|
===================================================================
|
|
|
|
--- gitlab.orig/Gemfile
|
|
|
|
+++ gitlab/Gemfile
|
2016-06-02 11:31:04 +05:30
|
|
|
@@ -14,8 +14,9 @@ gem 'sprockets', '~> 3.3'
|
2016-08-24 20:52:28 +05:30
|
|
|
gem 'default_value_for', '~> 3.0'
|
2016-01-23 21:05:43 +05:30
|
|
|
|
|
|
|
# Supported DBs
|
2016-08-24 20:52:28 +05:30
|
|
|
-gem 'mysql2', '~> 0.3.16', group: :mysql
|
|
|
|
-gem 'pg', '~> 0.18.2', group: :postgres
|
2016-01-23 21:05:43 +05:30
|
|
|
+ENV["DB"] ||= "mysql"
|
|
|
|
+gem "mysql2", '~> 0.3.16' if ENV["DB"] == "all" || ENV["DB"] == "mysql"
|
|
|
|
+gem "pg", '~> 0.18.2' if ENV["DB"] == "all" || ENV["DB"] == "postgres"
|
|
|
|
|
|
|
|
# Authentication libraries
|
2016-06-16 23:10:45 +05:30
|
|
|
gem 'devise', '~> 4.0'
|