Jeff Dean
2007-May-23 01:25 UTC
[Mongrel] mongrel_cluster + mongrel_upload_progress + drb + capistrano + docs
I just got the mongrel_upload_progress set up with drb and the setup was quick and easy, thanks to the good documentation on http://mongrel.rubyforge.org/docs/upload_progress.html I''d like to get this set up with capistrano, but there are 3 things I can''t figure out: - First, I can''t get lib/upload.rb to run in the background - I''m not familiar with setting services or daemons up on *nix, so this could be very easy and I just don''t know how to do it - Second, once I''ve started it as a daemon or service, how would I stop it? - Last, I don''t know how to add the -S flag to the mongrel_cluster command at startup Once I get those two things figured out, I''ll be able to get the whole thing on capistrano. Anyone know how to get upload.rb running in the background and the cluster to call the -S flag? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070522/a427a956/attachment.html
Craig Box
2007-May-23 02:51 UTC
[Mongrel] mongrel_cluster + mongrel_upload_progress + drb +capistrano + docs
> First, I can''t get lib/upload.rb to run in the background...The version at http://itblog.mcgeecorp.com/2007/5/15/mongrel-upload-progress-demo uses the ''daemons'' rubygem to do this for you...> Second, once I''ve started it as a daemon or service, how would I stopit? ... as per http://www.mcgeecorp.com/downloads/upload-progress-demo.README.txt, all you need to do is ruby lib/upload_progress_server.rb start ruby lib/upload_progress_server.rb stop> Last, I don''t know how to add the -S flag to the > mongrel_cluster command at startupIn your mongrel_cluster.yml file, add this line: config_script: config/mongrel_upload_progress.conf Craig (P.S. I hope upload progress updates for you.. doesn''t for me *sniff*)
Seemingly Similar Threads
- No return status from mongrel upload progress (and thus no updates on the bar)
- mongrel_cluster-0.1.1: the bird dog (capistrano support!)
- mongrel_upload_progress problems
- mongrel_rails cluster::restart task via capistrano mongrel_cluster/recipes problem.
- capistrano disable_web with mongrel_cluster