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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
68b119f6
Commit
68b119f6
authored
Nov 20, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2022 from simonoff/master
Resque must be running in the own namespace
parents
752468b2
18bc873d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
config/initializers/4_resque.rb
config/initializers/4_resque.rb
+3
-5
No files found.
config/initializers/4_resque.rb
View file @
68b119f6
# Custom Redis configuration
rails_root
=
ENV
[
'RAILS_ROOT'
]
||
File
.
dirname
(
__FILE__
)
+
'/../..'
rails_env
=
ENV
[
'RAILS_ENV'
]
||
'development'
config_file
=
File
.
join
(
rails_root
,
'config'
,
'resque.yml'
)
config_file
=
Rails
.
root
.
join
(
'config'
,
'resque.yml'
)
if
File
.
exists?
(
config_file
)
resque_config
=
YAML
.
load_file
(
config_file
)
Resque
.
redis
=
resque_config
[
rails_
env
]
Resque
.
redis
=
resque_config
[
Rails
.
env
]
end
Resque
.
redis
.
namespace
=
'resque:gitlab'
# Queues
Resque
.
watch_queue
(
PostReceive
.
instance_variable_get
(
"@queue"
))
...
...
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