]> git.pld-linux.org Git - packages/gitlab-ce.git/blob - gitlab-rake.sh
v8.12.1
[packages/gitlab-ce.git] / gitlab-rake.sh
1 #!/bin/sh
2 # Frontend to Gitlab Rake tasks
3 #
4 # http://docs.gitlab.com/ce/raketasks/
5 #
6 set -e
7
8 # Unset ENV variables that might interfere with
9 # omnibus-gitlab ruby env (looking at you rvm)
10 for ruby_env_var in RUBYOPT \
11                     BUNDLE_BIN_PATH \
12                     BUNDLE_GEMFILE \
13                     GEM_PATH \
14                     GEM_HOME
15 do
16         unset $ruby_env_var
17 done
18
19 # Rake with no params does nothing useful
20 # (currently it switches env production->test and then fails)
21 # so instead show defined tasks
22 test $# = 0 && set -- -T
23
24 cd /usr/lib/gitlab
25 exec sudo -u git bundle exec rake RAILS_ENV=production "$@"
This page took 0.046422 seconds and 3 git commands to generate.