From julien.genestoux at gmail.com Wed Dec 5 16:03:07 2007 From: julien.genestoux at gmail.com (Julien Genestoux) Date: Wed, 5 Dec 2007 13:03:07 -0800 Subject: [ap4r-user] AP4R and Capistrano Message-ID: <50003BCB-F4DF-4CA3-8830-74332DBA2EDB@gmail.com> Hello AP4R users, I am building an application that makes great use of AP4R and I am at the point where I am looking how to deploy my application and AP4R at the same time! As most of you, I am using Capistrano to deploy my app. Everything is going smoothly for my app itself, but I would really love to automate the deployment of AP4R at the same time, whether it's on the same server or on another one. Anyone has some tips? or has ever done this? Thanks for your help! Best -- Julien Genestoux julien.genestoux at gmail.com http://www.ouvre-boite.com +1 (415) 254 7340 +33 (0)8 70 44 76 29 From dave at interactivemediums.com Thu Dec 6 12:07:32 2007 From: dave at interactivemediums.com (dave farkas) Date: Thu, 06 Dec 2007 11:07:32 -0600 Subject: [ap4r-user] AP4R and Capistrano In-Reply-To: <50003BCB-F4DF-4CA3-8830-74332DBA2EDB@gmail.com> References: <50003BCB-F4DF-4CA3-8830-74332DBA2EDB@gmail.com> Message-ID: <47582C54.2030202@interactivemediums.com> Will you need to deploy ap4r each time you deploy your application? I've found that I deploy my application much more frequently than I deploy a new version of ap4r, so I've set them up as separate capistrano projects. If I'm setting up a new server I make sure to deploy ap4r (the queue) prior to deploying my application. Dave Julien Genestoux wrote: > Hello AP4R users, > > I am building an application that makes great use of AP4R and I am at > the point where I am looking how to deploy my application and AP4R at > the same time! > > As most of you, I am using Capistrano to deploy my app. Everything is > going smoothly for my app itself, but I would really love to automate > the deployment of AP4R at the same time, whether it's on the same > server or on another one. Anyone has some tips? or has ever done this? > > Thanks for your help! > > Best > > > > -- > Julien Genestoux > julien.genestoux at gmail.com > http://www.ouvre-boite.com > +1 (415) 254 7340 > +33 (0)8 70 44 76 29 > > > > _______________________________________________ > ap4r-user mailing list > ap4r-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/ap4r-user > From julien.genestoux at gmail.com Thu Dec 6 12:48:55 2007 From: julien.genestoux at gmail.com (Julien Genestoux) Date: Thu, 6 Dec 2007 09:48:55 -0800 Subject: [ap4r-user] AP4R and Capistrano In-Reply-To: <47582C54.2030202@interactivemediums.com> References: <50003BCB-F4DF-4CA3-8830-74332DBA2EDB@gmail.com> <47582C54.2030202@interactivemediums.com> Message-ID: Thanks Dave for your answer. Actually, yes, I need to deploy Ap4R each time since i am using Amazon EC2 and I am running new instances pretty often... Not to say each time! Anyone as another idea? Thanks! -- Julien Genestoux julien.genestoux at gmail.com +1 (415) 254-7340 http://www.ouvre-boite.com Envoy? depuis mon iPhone Le 6 d?c. 07 ? 09:07, dave farkas a ?crit : > Will you need to deploy ap4r each time you deploy your application? > I've > found that I deploy my application much more frequently than I > deploy a > new version of ap4r, so I've set them up as separate capistrano > projects. If I'm setting up a new server I make sure to deploy ap4r > (the > queue) prior to deploying my application. > > Dave > > Julien Genestoux wrote: >> Hello AP4R users, >> >> I am building an application that makes great use of AP4R and I am at >> the point where I am looking how to deploy my application and AP4R at >> the same time! >> >> As most of you, I am using Capistrano to deploy my app. Everything is >> going smoothly for my app itself, but I would really love to automate >> the deployment of AP4R at the same time, whether it's on the same >> server or on another one. Anyone has some tips? or has ever done >> this? >> >> Thanks for your help! >> >> Best >> >> >> >> -- >> Julien Genestoux >> julien.genestoux at gmail.com >> http://www.ouvre-boite.com >> +1 (415) 254 7340 >> +33 (0)8 70 44 76 29 >> >> >> >> _______________________________________________ >> ap4r-user mailing list >> ap4r-user at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ap4r-user >> > > _______________________________________________ > ap4r-user mailing list > ap4r-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/ap4r-user From dave at interactivemediums.com Thu Dec 6 13:01:07 2007 From: dave at interactivemediums.com (dave farkas) Date: Thu, 06 Dec 2007 12:01:07 -0600 Subject: [ap4r-user] temporarily disable dispatchers Message-ID: <475838E3.3080901@interactivemediums.com> Hi, Is there a way to temporarily disable dispatchers? I have a queue set up to dispatch to a system that goes down regularly for maintenance. It would be nice to shut down the dispatchers since they will fail anyway and turn them back on when the system is back up. Thanks, Dave From shinohara.shunichi at future.co.jp Thu Dec 6 21:38:40 2007 From: shinohara.shunichi at future.co.jp (shinohara.shunichi at future.co.jp) Date: Fri, 7 Dec 2007 11:38:40 +0900 Subject: [ap4r-user] AP4R and Capistrano In-Reply-To: References: <50003BCB-F4DF-4CA3-8830-74332DBA2EDB@gmail.com><47582C54.2030202@interactivemediums.com> Message-ID: <14CE73B79D552644B7CBEF0428763DF603C24E0E@045MAIL.future.co.jp> Hi Julien, AP4R has its own Capistrano recipe in lib/ap4r/recipe.rb from ver.0.3.4. It can handle just one AP4R process per server now, and defines deploy, (re)start, start, update and some more tasks in namespace :ap4r . The recipe is probably applicable to versions >= 0.3.2. It will (may?) goes well as 1. Run "capify ." in your AP4R's working directory (which has config, script, and some directories) 2. Sample deploy.rb file is as follows: ===== BEGIN ===== require 'ap4r/recipes' set :application, "trunk_test" set :repository, "SET_YOUR_REPO_PATH/#{application}" set :deploy_to, "/SOMEWHERE_YOU_WANT/#{application}" set :ap4r_conf, "#{current_path}/config/queues_your_config.cfg" role :ap4r, "10.18.0.25" ===== END ====== I'm sorry that I don't explain exactly. I don't have much time now :-< Please let me know any comments or feedbacks! P.S. Handling more than one AP4R processes is in my TODO list. So some configuration parameter may be changed in future release. Regards, shino > -----Original Message----- > >> As most of you, I am using Capistrano to deploy my app. Everything is > >> going smoothly for my app itself, but I would really love to automate > >> the deployment of AP4R at the same time, whether it's on the same > >> server or on another one. Anyone has some tips? or has ever done > >> this? From shinohara.shunichi at future.co.jp Thu Dec 6 21:54:56 2007 From: shinohara.shunichi at future.co.jp (shinohara.shunichi at future.co.jp) Date: Fri, 7 Dec 2007 11:54:56 +0900 Subject: [ap4r-user] temporarily disable dispatchers In-Reply-To: <475838E3.3080901@interactivemediums.com> References: <475838E3.3080901@interactivemediums.com> Message-ID: <14CE73B79D552644B7CBEF0428763DF603C24E0F@045MAIL.future.co.jp> Hi Dave, I just comment on two methods on ReliableMsg::QueueManager extended by AP4R which controls dispatchers FOR UNIT TESTING. These methods can be called via druby. Please refer AP4R's Rails plugin, lib/ap4r/service_handler.rb, which has start_dispatchers and stop_dispatchers methods. # from version 0.3.3 It is implemented for unit testing, I'm not sure it can be used in production. So this reply is just a comment, not a recommendation, sorry for that. Regards, shino > -----Original Message----- > Is there a way to temporarily disable dispatchers? I have a queue set up From julien.genestoux at gmail.com Mon Dec 10 23:48:24 2007 From: julien.genestoux at gmail.com (Julien Genestoux) Date: Mon, 10 Dec 2007 20:48:24 -0800 Subject: [ap4r-user] AP4R and Capistrano In-Reply-To: <14CE73B79D552644B7CBEF0428763DF603C24E0E@045MAIL.future.co.jp> References: <50003BCB-F4DF-4CA3-8830-74332DBA2EDB@gmail.com><47582C54.2030202@interactivemediums.com> <14CE73B79D552644B7CBEF0428763DF603C24E0E@045MAIL.future.co.jp> Message-ID: <78A7FE69-BD50-47B1-823A-D9AA675CC1B9@gmail.com> Thanks Shino for this... but I still have a little problem here: First, I run cap deploy:setup and everything smooth Then, I run cap deploy and everything is ok until the recipe restart is called : * executing `deploy:restart' * executing "/mnt/ap4r/current/script/process/reaper" servers: ["myprodserver"] [myprodserver] executing command ** [out :: myprodserver] sh: /mnt/ap4r/current/script/process/ reaper: No such file or directory command finished command "/mnt/ap4r/current/script/process/reaper" failed on myprodserver Anyone knows how to fix this? Thanks for your precious help! Best, -- Julien Genestoux julien.genestoux at gmail.com http://www.ouvre-boite.com +1 (415) 254 7340 +33 (0)8 70 44 76 29 Le 6 d?c. 07 ? 18:38, a ?crit : > Hi Julien, > > AP4R has its own Capistrano recipe in lib/ap4r/recipe.rb from ver. > 0.3.4. > It can handle just one AP4R process per server now, > and defines deploy, (re)start, start, update and some more tasks in > namespace :ap4r . > The recipe is probably applicable to versions >= 0.3.2. > > It will (may?) goes well as > 1. Run "capify ." in your AP4R's working directory (which has > config, script, and some directories) > 2. Sample deploy.rb file is as follows: > ===== BEGIN ===== > require 'ap4r/recipes' > > set :application, "trunk_test" > set :repository, "SET_YOUR_REPO_PATH/#{application}" > set :deploy_to, "/SOMEWHERE_YOU_WANT/#{application}" > set :ap4r_conf, "#{current_path}/config/queues_your_config.cfg" > > role :ap4r, "10.18.0.25" > ===== END ====== > > I'm sorry that I don't explain exactly. I don't have much time now :-< > Please let me know any comments or feedbacks! > > P.S. > Handling more than one AP4R processes is in my TODO list. > So some configuration parameter may be changed in future release. > > Regards, > shino > >> -----Original Message----- >>>> As most of you, I am using Capistrano to deploy my app. >>>> Everything is >>>> going smoothly for my app itself, but I would really love to >>>> automate >>>> the deployment of AP4R at the same time, whether it's on the same >>>> server or on another one. Anyone has some tips? or has ever done >>>> this? > _______________________________________________ > ap4r-user mailing list > ap4r-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/ap4r-user From julien.genestoux at gmail.com Mon Dec 10 23:52:49 2007 From: julien.genestoux at gmail.com (Julien Genestoux) Date: Mon, 10 Dec 2007 20:52:49 -0800 Subject: [ap4r-user] AP4R and Capistrano In-Reply-To: <14CE73B79D552644B7CBEF0428763DF603C24E0E@045MAIL.future.co.jp> References: <50003BCB-F4DF-4CA3-8830-74332DBA2EDB@gmail.com><47582C54.2030202@interactivemediums.com> <14CE73B79D552644B7CBEF0428763DF603C24E0E@045MAIL.future.co.jp> Message-ID: Sorry for the double mail... but I've got a second question! What about the database and tables, is there anyway to deploy create at the same time with capistrano? Thanks, -- Julien Genestoux julien.genestoux at gmail.com http://www.ouvre-boite.com +1 (415) 254 7340 +33 (0)8 70 44 76 29 Le 6 d?c. 07 ? 18:38, a ?crit : > Hi Julien, > > AP4R has its own Capistrano recipe in lib/ap4r/recipe.rb from ver. > 0.3.4. > It can handle just one AP4R process per server now, > and defines deploy, (re)start, start, update and some more tasks in > namespace :ap4r . > The recipe is probably applicable to versions >= 0.3.2. > > It will (may?) goes well as > 1. Run "capify ." in your AP4R's working directory (which has > config, script, and some directories) > 2. Sample deploy.rb file is as follows: > ===== BEGIN ===== > require 'ap4r/recipes' > > set :application, "trunk_test" > set :repository, "SET_YOUR_REPO_PATH/#{application}" > set :deploy_to, "/SOMEWHERE_YOU_WANT/#{application}" > set :ap4r_conf, "#{current_path}/config/queues_your_config.cfg" > > role :ap4r, "10.18.0.25" > ===== END ====== > > I'm sorry that I don't explain exactly. I don't have much time now :-< > Please let me know any comments or feedbacks! > > P.S. > Handling more than one AP4R processes is in my TODO list. > So some configuration parameter may be changed in future release. > > Regards, > shino > >> -----Original Message----- >>>> As most of you, I am using Capistrano to deploy my app. >>>> Everything is >>>> going smoothly for my app itself, but I would really love to >>>> automate >>>> the deployment of AP4R at the same time, whether it's on the same >>>> server or on another one. Anyone has some tips? or has ever done >>>> this? > _______________________________________________ > ap4r-user mailing list > ap4r-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/ap4r-user From shino.shun at gmail.com Tue Dec 11 00:09:45 2007 From: shino.shun at gmail.com (shun shino) Date: Tue, 11 Dec 2007 14:09:45 +0900 Subject: [ap4r-user] AP4R and Capistrano In-Reply-To: References: <50003BCB-F4DF-4CA3-8830-74332DBA2EDB@gmail.com> <47582C54.2030202@interactivemediums.com> <14CE73B79D552644B7CBEF0428763DF603C24E0E@045MAIL.future.co.jp> Message-ID: <6af2b9b80712102109r435df47cu3471c68c88c33186@mail.gmail.com> Hi Julien, I reply this in advance. I'm sorry but it doe's not support any database handling. There should be more information (e.g. user/pass to create database), it is a little bit hard :-< On EC2, once you create template database and setup tables (on S3 or somewhere), can you just copy it for new instance? Anyway, I will think of creating/setting-up database in the future. 2007/12/11, Julien Genestoux : > What about the database and tables, is there anyway to deploy create > at the same time with capistrano? Regards, shino From shino.shun at gmail.com Tue Dec 11 00:22:40 2007 From: shino.shun at gmail.com (shun shino) Date: Tue, 11 Dec 2007 14:22:40 +0900 Subject: [ap4r-user] AP4R and Capistrano In-Reply-To: <78A7FE69-BD50-47B1-823A-D9AA675CC1B9@gmail.com> References: <50003BCB-F4DF-4CA3-8830-74332DBA2EDB@gmail.com> <47582C54.2030202@interactivemediums.com> <14CE73B79D552644B7CBEF0428763DF603C24E0E@045MAIL.future.co.jp> <78A7FE69-BD50-47B1-823A-D9AA675CC1B9@gmail.com> Message-ID: <6af2b9b80712102122v711adf1am4ce6c08c0f4f68df@mail.gmail.com> Hi, Please use tasks in "ap4r" namespace. ex: ap4r:setup ap4r:deploy ap4r:restart Please ruby 'cap -T' for all tasks. Now I suppose that working root directories for rails and AP4R are different. But for the case where these should be coinside (for the reason I don't know now), I add ap4r namespace for ap4r handling tasks. 2007/12/11, Julien Genestoux : > Thanks Shino for this... but I still have a little problem here: > > First, I run cap deploy:setup and everything smooth > Then, I run cap deploy and everything is ok until the recipe restart > is called : > Anyone knows how to fix this? HTH shino From alex at mossi.co.uk Tue Dec 11 05:24:35 2007 From: alex at mossi.co.uk (Alex Graul) Date: Tue, 11 Dec 2007 02:24:35 -0800 Subject: [ap4r-user] update Message-ID: <22592.1197368675@mossi.co.uk> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ap4r-user/attachments/20071211/10b3a491/attachment.html From alex at mossi.co.uk Tue Dec 11 05:55:16 2007 From: alex at mossi.co.uk (Alex Graul) Date: Tue, 11 Dec 2007 02:55:16 -0800 Subject: [ap4r-user] update Message-ID: <16084.1197370516@mossi.co.uk> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ap4r-user/attachments/20071211/b751244f/attachment.html