Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c9e6818a
Commit
c9e6818a
authored
Jan 16, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store repo satellites outside of tmp directory
parent
3d57755b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
config/gitlab.yml.example
config/gitlab.yml.example
+4
-0
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+2
-0
doc/install/installation.md
doc/install/installation.md
+3
-0
lib/gitlab/satellite/satellite.rb
lib/gitlab/satellite/satellite.rb
+1
-1
No files found.
config/gitlab.yml.example
View file @
c9e6818a
...
@@ -84,6 +84,10 @@ omniauth:
...
@@ -84,6 +84,10 @@ omniauth:
# 3. Advanced settings
# 3. Advanced settings
# ==========================
# ==========================
# GitLab Satellites
satellites:
path: /home/gitlab/gitlab-satellites/
## Backup settings
## Backup settings
backup:
backup:
path: "tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)
path: "tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)
...
...
config/initializers/1_settings.rb
View file @
c9e6818a
...
@@ -77,3 +77,5 @@ Settings['git'] ||= Settingslogic.new({})
...
@@ -77,3 +77,5 @@ Settings['git'] ||= Settingslogic.new({})
Settings
.
git
[
'max_size'
]
||=
5242880
# 5.megabytes
Settings
.
git
[
'max_size'
]
||=
5242880
# 5.megabytes
Settings
.
git
[
'bin_path'
]
||=
'/usr/bin/git'
Settings
.
git
[
'bin_path'
]
||=
'/usr/bin/git'
Settings
.
git
[
'timeout'
]
||=
10
Settings
.
git
[
'timeout'
]
||=
10
Settings
.
satellites
[
'path'
]
||=
'/home/gitlab/gitlab/tmp/repo_satellites/'
doc/install/installation.md
View file @
c9e6818a
...
@@ -223,6 +223,9 @@ do so with caution!
...
@@ -223,6 +223,9 @@ do so with caution!
sudo chmod -R u+rwX log/
sudo chmod -R u+rwX log/
sudo chmod -R u+rwX tmp/
sudo chmod -R u+rwX tmp/
# Make directory for satellites
sudo -u gitlab -H mkdir /home/gitlab/gitlab-satellites
# Copy the example Unicorn config
# Copy the example Unicorn config
sudo -u gitlab -H cp config/unicorn.rb.example config/unicorn.rb
sudo -u gitlab -H cp config/unicorn.rb.example config/unicorn.rb
...
...
lib/gitlab/satellite/satellite.rb
View file @
c9e6818a
...
@@ -57,7 +57,7 @@ module Gitlab
...
@@ -57,7 +57,7 @@ module Gitlab
end
end
def
path
def
path
Rails
.
root
.
join
(
"tmp"
,
"repo_satellites"
,
project
.
path_with_namespace
)
File
.
join
(
Gitlab
.
config
.
satellites
.
path
,
project
.
path_with_namespace
)
end
end
def
repo
def
repo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment