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
4eac403e
Commit
4eac403e
authored
Jan 09, 2013
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sidekiq task to use Rails
parent
6ea7bc27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
lib/tasks/sidekiq.rake
lib/tasks/sidekiq.rake
+2
-10
No files found.
lib/tasks/sidekiq.rake
View file @
4eac403e
...
@@ -6,18 +6,10 @@ namespace :sidekiq do
...
@@ -6,18 +6,10 @@ namespace :sidekiq do
desc
"GITLAB | Start sidekiq"
desc
"GITLAB | Start sidekiq"
task
:start
do
task
:start
do
run
"nohup bundle exec sidekiq -q post_receive,mailer,system_hook,common,default -e
#{
rails_env
}
-P
#{
pidfile
}
>>
#{
root_path
}
/log/sidekiq.log 2>&1 &"
run
"nohup bundle exec sidekiq -q post_receive,mailer,system_hook,common,default -e
#{
Rails
.
env
}
-P
#{
pidfile
}
>>
#{
Rails
.
root
.
join
(
"log"
,
"sidekiq.log"
)
}
2>&1 &"
end
def
root_path
@root_path
||=
File
.
join
(
File
.
expand_path
(
File
.
dirname
(
__FILE__
)),
"../.."
)
end
end
def
pidfile
def
pidfile
"
#{
root_path
}
/tmp/pids/sidekiq.pid"
Rails
.
root
.
join
(
"tmp"
,
"pids"
,
"sidekiq.pid"
)
end
def
rails_env
ENV
[
'RAILS_ENV'
]
||
"production"
end
end
end
end
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