Welcome Guest | Login

Updating the application

Hello,

When my application was first deployed, I used your custom deployment service. So you guys did all the setup. Now I need to make changes to the application, is there a guide to as what you guys did for deployment and how I can make changes with Capistrano?

Thanks

2008-06-23 04:19 AM

Hi Zhusong,

In order to deploy your rails application you can make use of the following wiki links:
http://www.hostingrails.com/forums/wiki_thread/1http://www.hostingrails.com/forums/deployment_troubleshooting_thread/91

After making the necessary changes like:
===
The config/environment.rb should specify the environment as production. ie,

ENV['RAILS_ENV'] ||= 'production'

The above line should be uncommented. Since your application is running in FCGI, the public/htaccess file should contain this line.

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

And  we should comment out the line " AddHandler fastcgi-script .fcgi ". Make sure that the shebang line in public/dispatch.fcgi is

#!/usr/local/bin/ruby

The above line  tells the dispatch.fcgi from where the ruby binary has to be called. Create the database from c-panel with full user privilages.  Then populate the database using the command  

$ rake db:migrate RAILS_ENV='production'

Move the existing public_html to public_html.bk

$ mv public_html public_html.bk

Create a sym link to public_html from rails_app/public.

$ ln -s rails_app/public public_html
===

You can bump up your rails application on mongrel using the wiki link :
http://www.hostingrails.com/forums/wiki_thread/19

The following wiki link will guide you for Capistrano deployment of your rails app:
http://www.hostingrails.com/forums/wiki_thread/46

2008-06-23 01:57 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!