Philip Rhoades
2006-Jun-13 02:58 UTC
[Rails] 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: <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