# Rails deployment

**URL:** <https://www.ruby-forum.com/t/rails-deployment/57833>\
**Category:** Rails\
**Created:** [April 14, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/rails-deployment/57833 "2006-04-14T17:44:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@Daan](https://www.ruby-forum.com/u/Daan)\
**Post date:** [April 14, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/rails-deployment/57833/1 "2006-04-14T17:44:18Z")

</div>

Hi all,

I’ve greated a rails application and i want to deploy it right now.  
I have to use a windows 2003 server… So i installed

i’ve used the following tutorial:

[http://wiki.rubyonrails.com/rails/pages/RailsOnWindows](http://wiki.rubyonrails.com/rails/pages/RailsOnWindows)

My application is running at : [http://loc.iwsweb.nl](http://loc.iwsweb.nl)

But everytime i connect it opens a ruby process but at the end it won’t  
kill it.

As you can see the loading speed is horrible, but it’s a fast server  
with a 100mbit connection.

Can anyone help me?

Thanks in advance,

Daan

---

<div class="post-metadata">

**Author:** ![Daan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@Daan](https://www.ruby-forum.com/u/Daan)\
**Post date:** [April 14, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/rails-deployment/57833/2 "2006-04-14T17:55:48Z")

</div>

Daan wrote:

> Hi all,
> 
> I’ve greated a rails application and i want to deploy it right now.  
> I have to use a windows 2003 server… So i installed
> 
> i’ve used the following tutorial:
> 
> [Peak Obsession](http://wiki.rubyonrails.com/rails/pages/RailsOnWindows)
> 
> My application is running at : [http://loc.iwsweb.nl](http://loc.iwsweb.nl)
> 
> But everytime i connect it opens a ruby process but at the end it won’t  
> kill it.
> 
> As you can see the loading speed is horrible, but it’s a fast server  
> with a 100mbit connection.
> 
> Can anyone help me?
> 
> Thanks in advance,
> 
> Daan

Are you using Apache or Lighty?

Please post your .htaccess and the part of your httpd.conf that you  
modified

P  
[http://wiki.onrails.com.ar](http://wiki.onrails.com.ar)

---

<div class="post-metadata">

**Author:** ![Daan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@Daan](https://www.ruby-forum.com/u/Daan)\
**Post date:** [April 14, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/rails-deployment/57833/3 "2006-04-14T18:14:06Z")

</div>

I’m using Apache

htaccess:  
AddHandler fastcgi-script .fcgi  
AddHandler cgi-script .cgi  
Options +FollowSymLinks +ExecCGI

RewriteEngine On

RewriteRule ^$ index.html [QSA]  
RewriteRule ^([^.]+)$ $1.html [QSA]  
RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteRule ^(.\*)$ dispatch.fcgi [QSA,L]

httpd.conf:

LoadModule rewrite\_module modules/mod\_rewrite.so  
LoadModule fastcgi\_module modules/mod\_fastcgi.dll

DocumentRoot “C:/rails\_docs/locaties/public”  
\<Directory “C:/rails\_docs/locaties/public”\>

\<VirtualHost \*:80\>  
ServerName rails  
DocumentRoot “C:/rails\_docs/locaties/public”  
\<Directory “C:/rails\_docs/locaties/public”\>  
Options ExecCGI FollowSymLinks  
AllowOverride all  
Allow from all  
Order allow,deny  
AddHandler cgi-script .cgi  
AddHandler fastcgi-script .fcgi

---

<div class="post-metadata">

**Author:** ![Daan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@Daan](https://www.ruby-forum.com/u/Daan)\
**Post date:** [April 14, 2006, 6:40pm UTC](https://www.ruby-forum.com/t/rails-deployment/57833/4 "2006-04-14T18:40:12Z")

</div>

Daan wrote:

> I’m using Apache
> 
> htaccess:  
> AddHandler fastcgi-script .fcgi  
> AddHandler cgi-script .cgi  
> Options +FollowSymLinks +ExecCGI
> 
> RewriteEngine On
> 
> RewriteRule ^$ index.html [QSA]  
> RewriteRule ^([^.]+)$ $1.html [QSA]  
> RewriteCond %{REQUEST\_FILENAME} !-f  
> RewriteRule ^(.\*)$ dispatch.fcgi [QSA,L]
> 
> httpd.conf:
> 
> LoadModule rewrite\_module modules/mod\_rewrite.so  
> LoadModule fastcgi\_module modules/mod\_fastcgi.dll
> 
> DocumentRoot “C:/rails\_docs/locaties/public”  
> \<Directory “C:/rails\_docs/locaties/public”\>
> 
> \<VirtualHost \*:80\>  
> ServerName rails  
> DocumentRoot “C:/rails\_docs/locaties/public”  
> \<Directory “C:/rails\_docs/locaties/public”\>  
> Options ExecCGI FollowSymLinks  
> AllowOverride all  
> Allow from all  
> Order allow,deny  
> AddHandler cgi-script .cgi  
> AddHandler fastcgi-script .fcgi

IMHO Seems to be ok.

Ive readed that there are some issues with apache and fcgi. Search  
google about that.  
Lighttpd has better performance. Try lighty have you?  
I used ligthy on my w2000 box.

P

[http://wiki.onrails.com.ar](http://wiki.onrails.com.ar)
