Merge branch 'gitaly-386-shell-config' into 'master'
Gitaly needs to know where to find gitlab-shell See merge request !13306
This commit is contained in:
commit
ff1fa39cd8
2 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,7 @@ namespace :gitlab do
|
|||
config = { socket_path: address.sub(%r{\Aunix:}, ''), storage: storages }
|
||||
config[:auth] = { token: 'secret' } if Rails.env.test?
|
||||
config[:'gitaly-ruby'] = { dir: File.join(Dir.pwd, 'ruby') } if gitaly_ruby
|
||||
config[:'gitlab-shell'] = { dir: Gitlab.config.gitlab_shell.path }
|
||||
TOML.dump(config)
|
||||
end
|
||||
|
||||
|
|
|
@ -105,6 +105,8 @@ describe 'gitlab:gitaly namespace rake task' do
|
|||
# Gitaly storage configuration generated from #{Gitlab.config.source} on #{Time.current.to_s(:long)}
|
||||
# This is in TOML format suitable for use in Gitaly's config.toml file.
|
||||
socket_path = "/path/to/my.socket"
|
||||
[gitlab-shell]
|
||||
dir = "#{Gitlab.config.gitlab_shell.path}"
|
||||
[[storage]]
|
||||
name = "default"
|
||||
path = "/path/to/default"
|
||||
|
|
Loading…
Reference in a new issue