Hi All, Silly question here, but what is the quickest route for setting up a simple rails app with load balancing *without* Capistrano? My current server "rails.conf" file looks like this: NameVirtualHost *:80 # Setup the cluster <Proxy balancer://gittest_cluster> BalancerMember http://127.0.0.1:8000 BalancerMember http://127.0.0.1:8001 BalancerMember http://127.0.0.1:8002 </Proxy> <VirtualHost *:80> ServerAdmin mmilano-5ZE2jJ9GpSfN00KYMXVaAGZtm2MBb6oo@public.gmane.org ServerName localhost ServerAlias localhost DocumentRoot /home/git/apps/gittest/current/public <Directory ''/home/git/apps/gittest/current/public''> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> ProxyPass / balancer://gittest_cluster/ ProxyPassReverse / balancer://gittest_cluster/ RewriteEngine On RewriteRule ^/$ /index.html [QSA] RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://gittest_cluster%{REQUEST_URI} [P,QSA,L] ErrorLog /home/git/apps/gittest/current/log/apache_error_log CustomLog /home/git/apps/gittest/current/log/apache_access_log combined </VirtualHost> ...but that''s for use with a Cap deploy. I''m honestly rather stumped as to how to get something running *without* Capistrano. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jun-18 18:06 UTC
Re: Deploying a Production app *without* Capistrano...?
On Jun 18, 6:55 pm, gberz3 <gbe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi All, > > Silly question here, but what is the quickest route for setting up a > simple rails app with load balancing *without* Capistrano? My current > server "rails.conf" file looks like this:There is nothing in there that is capistrano specific. All yo need to do is checkout your app info /home/git/apps/gittest/current/ and start a mongrel cluster running on ports 8000-8002. (mongrel_rails cluster::start assuming your mongrel_cluster.yml file is ready to go) Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jun 18, 2:06 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > There is nothing in there that is capistrano specific. All yo need to > do is checkout your app info /home/git/apps/gittest/current/ and start > a mongrel cluster running on ports 8000-8002. (mongrel_rails > cluster::start assuming your mongrel_cluster.yml file is ready to go) > > FredThat last part "assuming your mongrel_cluster.yml" is ready to go. Will the default cluster file work? And I will be SSHing to the machine to start the process. I''ll need a process that is self- sufficient without requiring me to remain logged in. For instance, with a "Development" cluster start, if I close the session out, the mongrel process chokes out too. Honestly, I''m looking to break rails tradition with "quick-and-dirty" Thanks again, and in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jun-18 18:43 UTC
Re: Deploying a Production app *without* Capistrano...?
On 18 Jun 2008, at 19:18, gberz3 wrote:> > > > On Jun 18, 2:06 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> >> There is nothing in there that is capistrano specific. All yo need to >> do is checkout your app info /home/git/apps/gittest/current/ and >> start >> a mongrel cluster running on ports 8000-8002. (mongrel_rails >> cluster::start assuming your mongrel_cluster.yml file is ready to go) >> >> Fred > > > That last part "assuming your mongrel_cluster.yml" is ready to go. > Will the default cluster file work? And I will be SSHing to theYes. We did it like that for ages before we switched to capistrano.> > machine to start the process. I''ll need a process that is self- > sufficient without requiring me to remain logged in. For instance, > with a "Development" cluster start, if I close the session out, the > mongrel process chokes out too. > > Honestly, I''m looking to break rails tradition with "quick-and-dirty" > > Thanks again, and in advance. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shouldn''t be a problem ... before there was Capistrano, there was "old school." On Jun 18, 1:43 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 18 Jun 2008, at 19:18, gberz3 wrote: > > > > > > > On Jun 18, 2:06 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > >> There is nothing in there that is capistrano specific. All yo need to > >> do is checkout your app info /home/git/apps/gittest/current/ and > >> start > >> a mongrel cluster running on ports 8000-8002. (mongrel_rails > >> cluster::start assuming your mongrel_cluster.yml file is ready to go) > > >> Fred > > > That last part "assuming your mongrel_cluster.yml" is ready to go. > > Will the default cluster file work? And I will be SSHing to the > > Yes. We did it like that for ages before we switched to capistrano. > > > > > machine to start the process. I''ll need a process that is self- > > sufficient without requiring me to remain logged in. For instance, > > with a "Development" cluster start, if I close the session out, the > > mongrel process chokes out too. > > > Honestly, I''m looking to break rails tradition with "quick-and-dirty" > > > Thanks again, and in advance.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---