Commit 104575b407ba47d2181b253473383e9ad40672e8

Authored by Jacob Vosmaer
1 parent 9bd7038e

Clean up the gitlab-rails definition a bit

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
config/software/gitlab-rails.rb
... ... @@ -55,12 +55,14 @@ build do
55 55 # load the Rails environment.
56 56 command "cp config/gitlab.yml.example config/gitlab.yml"
57 57 command "cp config/database.yml.postgresql config/database.yml"
  58 +
58 59 # There is a bug in the acts-as-taggable-on gem that makes
59 60 # rake assets:precompile check for a database connection. We do not have a
60 61 # database at this point so that is a problem. This bug is fixed in
61 62 # acts-as-taggable-on 3.0.0 by
62 63 # https://github.com/mbleigh/acts-as-taggable-on/commit/ad02dc9bb24ec8e1e79e7e35e2d4bb5910a66d8e
63 64 aato_patch = "#{Omnibus.project_root}/config/patches/acts-as-taggable-on-ad02dc9bb24ec8e1e79e7e35e2d4bb5910a66d8e.diff"
  65 +
64 66 # To make this idempotent, we apply the patch (in case this is a first run) or
65 67 # we revert and re-apply the patch (if this is a second or later run).
66 68 command "git apply #{aato_patch} || (git apply -R #{aato_patch} && git apply #{aato_patch})",
... ... @@ -75,8 +77,10 @@ build do
75 77 # Tear down now that the assets:precompile is done.
76 78 command "rm config/gitlab.yml config/database.yml"
77 79  
78   - command "mkdir -p #{install_dir}/embedded/service/gitlab-rails"
  80 + # Remove directories that will be created by `gitlab-ctl reconfigure`
79 81 command "rm -rf log tmp public/uploads"
  82 +
  83 + command "mkdir -p #{install_dir}/embedded/service/gitlab-rails"
80 84 command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-rails/"
81 85  
82 86 # Create a wrapper for the rake tasks of the Rails app
... ...