Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deployment information to the wiki #28

Closed
codesnik opened this issue Oct 13, 2011 · 6 comments
Closed

Add deployment information to the wiki #28

codesnik opened this issue Oct 13, 2011 · 6 comments

Comments

@codesnik
Copy link

running rake task is simple for development, but what if we updated worker code and want to deploy a new one? somthing should find previous worker pid, kill it, run another. looks like some kind of daemonization needed.

I'm sure we'll figure that out, but we won't be the first who did, so can you please add a section to the README?

@bkeepers
Copy link
Owner

@codesnik Definitely. Most people use god or some other process monitor in production. I think a deployment page in the wiki would be a great way to start.

@Maay
Copy link

Maay commented Oct 20, 2011

Is it possible to use in capistrano deploy something like that?
task :qu do run "cd #{deploy_to}/current/ && nuhup bundle exec rake qu:work QUEUES=urgent,default &" end

@codesnik
Copy link
Author

it would work. but it won't restart worker if you changed it, and it would start worker on every deploy.
looks like daemon-kit is needed for a robust solution.

@Maay
Copy link

Maay commented Oct 20, 2011

Hm, I've tried and it does passing well, without errors, but Qu seems not starting and handling the jobs. It doesn't even create log file, but locally it does everything perfectly. What is the way to restart a worker?

@codesnik
Copy link
Author

https://github.com/ddollar/foreman#readme maybe this could help.

@bkeepers
Copy link
Owner

@Maay, @codesnik: I would recommend managing the process server side. Either using god or foreman+upstart. See the Resque FAQ on restarting workers with capistrano.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants