# Deploying a Production app \*without\* Capistrano...?

**URL:** <https://www.ruby-forum.com/t/deploying-a-production-app-without-capistrano/140807>\
**Category:** Rails\
**Created:** [June 18, 2008, 7:56pm UTC](https://www.ruby-forum.com/t/deploying-a-production-app-without-capistrano/140807 "2008-06-18T19:56:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [June 18, 2008, 7:56pm UTC](https://www.ruby-forum.com/t/deploying-a-production-app-without-capistrano/140807/1 "2008-06-18T19:56:17Z")

</div>

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](http://127.0.0.1:8000)  
BalancerMember [http://127.0.0.1:8001](http://127.0.0.1:8001)  
BalancerMember [http://127.0.0.1:8002](http://127.0.0.1:8002)

\<VirtualHost \*:80\>  
ServerAdmin removed\_email\_address@domain.invalid  
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

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

…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.

---

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [June 18, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/deploying-a-production-app-without-capistrano/140807/2 "2008-06-18T20:07:03Z")

</div>

On Jun 18, 6:55 pm, gberz3 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [June 18, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/deploying-a-production-app-without-capistrano/140807/3 "2008-06-18T20:19:38Z")

</div>

On Jun 18, 2:06 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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  
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.

---

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [June 19, 2008, 4:08am UTC](https://www.ruby-forum.com/t/deploying-a-production-app-without-capistrano/140807/4 "2008-06-19T04:08:31Z")

</div>

Shouldn’t be a problem … before there was Capistrano, there was “old  
school.”

On Jun 18, 1:43 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [June 18, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/deploying-a-production-app-without-capistrano/140807/5 "2008-06-18T20:45:10Z")

</div>

On 18 Jun 2008, at 19:18, gberz3 wrote:

> > 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.
