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@infinitydatasystems.com
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.
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
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.
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.
Shouldn't be a problem ... before there was Capistrano, there was "old
school."