diff options
author | Stan Hu <stanhu@gmail.com> | 2016-06-07 18:37:38 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-06-07 18:37:38 +0000 |
commit | 2cbb17da31be0d18e8457232255da0bd5ac87db5 (patch) | |
tree | 84c50811bc17c7f02fbe662cdfeadf1ae728fd64 | |
parent | babf20c8ab2c2186590758b193de953c5efdefb4 (diff) | |
parent | 88b0a9efc44a792a7fd9f2263a1c85b9ef552504 (diff) | |
download | gitlab-ce-2cbb17da31be0d18e8457232255da0bd5ac87db5.tar.gz |
Merge branch 'load-knapsack-if-defined' into 'master'
Load knapsack in Rakefile only when is bundled
Fixes `production` builds: https://dev.gitlab.org/gitlab/omnibus-gitlab/builds/85407
cc @marin
See merge request !4514
-rw-r--r-- | Gemfile | 2 | ||||
-rwxr-xr-x | Rakefile | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -308,6 +308,7 @@ group :development, :test do gem 'benchmark-ips', require: false gem "license_finder", require: false + gem 'knapsack' end group :test do @@ -316,7 +317,6 @@ group :test do gem 'webmock', '~> 1.21.0' gem 'test_after_commit', '~> 0.4.2' gem 'sham_rack' - gem 'knapsack' end group :production do @@ -3,11 +3,10 @@ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) -require 'knapsack' relative_url_conf = File.expand_path('../config/initializers/relative_url', __FILE__) require relative_url_conf if File.exist?("#{relative_url_conf}.rb") Gitlab::Application.load_tasks -Knapsack.load_tasks +Knapsack.load_tasks if defined?(Knapsack) |