Store repo satellites outside of tmp directory

This commit is contained in:
Dmitriy Zaporozhets 2013-01-16 13:30:31 +02:00
parent 3d57755b70
commit c9e6818ab6
4 changed files with 10 additions and 1 deletions

View file

@ -84,6 +84,10 @@ omniauth:
# 3. Advanced settings
# ==========================
# GitLab Satellites
satellites:
path: /home/gitlab/gitlab-satellites/
## Backup settings
backup:
path: "tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)

View file

@ -77,3 +77,5 @@ Settings['git'] ||= Settingslogic.new({})
Settings.git['max_size'] ||= 5242880 # 5.megabytes
Settings.git['bin_path'] ||= '/usr/bin/git'
Settings.git['timeout'] ||= 10
Settings.satellites['path'] ||= '/home/gitlab/gitlab/tmp/repo_satellites/'

View file

@ -223,6 +223,9 @@ do so with caution!
sudo chmod -R u+rwX log/
sudo chmod -R u+rwX tmp/
# Make directory for satellites
sudo -u gitlab -H mkdir /home/gitlab/gitlab-satellites
# Copy the example Unicorn config
sudo -u gitlab -H cp config/unicorn.rb.example config/unicorn.rb

View file

@ -57,7 +57,7 @@ module Gitlab
end
def path
Rails.root.join("tmp", "repo_satellites", project.path_with_namespace)
File.join(Gitlab.config.satellites.path, project.path_with_namespace)
end
def repo