Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Sidorenko <artem@posteo.de>2016-02-26 01:10:32 +0300
committerArtem Sidorenko <artem@posteo.de>2016-02-29 23:17:48 +0300
commitf5202c20b0031f8b883576423e3320ca44c5eca3 (patch)
tree9f11285c56e62a7c75eb07ee0e8a98f85454bd6f /Rakefile
parent28ba8ed5f594251604298be89019bd0d105fd49f (diff)
Include relative url configuration in rake tasks
initializers are not loaded during the rake task assets:precompile, so assets generation runs without relative url configuration in Rails and produces broken assets.
Diffstat (limited to 'Rakefile')
-rwxr-xr-xRakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 35b2f05cbb4..5dd389d5678 100755
--- a/Rakefile
+++ b/Rakefile
@@ -4,4 +4,7 @@
require File.expand_path('../config/application', __FILE__)
+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