betweenGo

Deploying to Production Notes

by on Jun.12, 2007, under Ruby on Rails

  1. To run the DB migrate scripts you must specify that you are using the production configuration. One simple way to do this is:

    rake RAILS_ENV='production' db:migrate

  2. Make the public/dispatch.* scripts executable. If you developed originally in Windows then you need to change the first line in each of these dispatch scripts from

    #!e:/ruby/bin/ruby

    to

    #!/usr/bin/ruby1.8

  3. Enable FastCGI (CGI is ridiculously slow) by changing .htaccess. Change this line

    RewriteRule ^(.*)$ dispatch.cgi [QSA,L]

    to

    RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

  4. Change the public and log directories to mode 755 (not sure if this is necessary but seems like good practice).

    chmod 755 public
    chmod 755 log


Share

Related posts:

  1. Configuring Apache to work with a Mongrel Cluster
  2. Cygwin Bash cannot execute DOS formatted scripts
  3. Turning On Debug in JBoss
  4. Shell Scripts with Windows LF’s Fail in Latest Cygwin
  5. Configuring Capistrano and Mongrel

:

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!