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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
0beba025
Commit
0beba025
authored
Feb 22, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manually correct autocorrect
parent
b3ff48c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/workers/prune_old_events_worker.rb
app/workers/prune_old_events_worker.rb
+2
-2
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+2
-0
No files found.
app/workers/prune_old_events_worker.rb
View file @
0beba025
...
@@ -12,7 +12,7 @@ class PruneOldEventsWorker
...
@@ -12,7 +12,7 @@ class PruneOldEventsWorker
'created_at < ?'
,
'created_at < ?'
,
(
12
.
months
+
1
.
day
).
ago
)
(
12
.
months
+
1
.
day
).
ago
)
.
select
(
:id
)
.
select
(
:id
)
.
limit
(
10_000
)
)
.
limit
(
10_000
)
.
delete_all
)
.
delete_all
end
end
end
end
config/initializers/1_settings.rb
View file @
0beba025
...
@@ -20,6 +20,7 @@ class Settings < Settingslogic
...
@@ -20,6 +20,7 @@ class Settings < Settingslogic
else
else
":
#{
gitlab
.
port
}
"
":
#{
gitlab
.
port
}
"
end
end
[
[
gitlab
.
protocol
,
gitlab
.
protocol
,
"://"
,
"://"
,
...
@@ -82,6 +83,7 @@ class Settings < Settingslogic
...
@@ -82,6 +83,7 @@ class Settings < Settingslogic
def
base_url
(
config
)
def
base_url
(
config
)
custom_port
=
on_standard_port?
(
config
)
?
nil
:
":
#{
config
.
port
}
"
custom_port
=
on_standard_port?
(
config
)
?
nil
:
":
#{
config
.
port
}
"
[
[
config
.
protocol
,
config
.
protocol
,
"://"
,
"://"
,
...
...
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