Forum: Ruby on Rails Moving from a development to a production environment Qs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Philip Rhoades (Guest)
on 2006-06-13 05:02
(Received via mailing list)
People,

I have done a few little RoR apps and have struggled to move them from
the WeBrick development environment to a production environment - I have
actually succeeded but what I have done seems clumsy so I must be
missing some things, eg:

In public/.htaccess

    RewriteBase /library

In app/views/layout/*.rhtml change:

  <li><a href="/library">Home page</a>
  <li><a href="/library/authors/list">Authors</a>
  <li><a href="/library/books/list">Books</a>

to:

  <li><a href="/">Home page</a>
  <li><a href="/authors/list">Authors</a>
  <li><a href="/books/list">Books</a>

Also in httpd.conf I couldn't get VirtualHost to work and had to use an
alias:

Alias /library "/var/www/html/library/public/"
 <Directory /var/www/html/library/public/>
   Options ExecCGI
   AddHandler cgi-script .cgi
   AllowOverride all
   Order allow,deny
   Allow from all
 </Directory>

So when I am updating from the development to the production dir I have
to copy everything except:

.htaccess
database.yml
index.rhtml
layouts/
log/
tmp/

There must be a simpler way?

What about using Mongrel in a production environment?

Thanks,

Phil.
--
Philip Rhoades

Pricom Pty Limited  (ACN 003 252 275  ABN 91 003 252 275)
GPO Box 3411
Sydney NSW      2001
Australia
Mobile:  +61:(0)411-185-652
Fax:     +61:(0)2-8221-9599
E-mail:  phil@pricom.com.au
This topic is locked and can not be replied to.