Moving from a development to a production environment Qs

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:

  • Home page
  • Authors
  • Books

    to:

  • Home page
  • Authors
  • Books

    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

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

    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: [email protected]