Ruby on Rails Wednesday, April 28, 2010

nirosh wrote:
> does any one knows how to setup ror on hostmonster. i'm new to the
> hosting. so i dono how to set it up. the technical people told me that
> they don't give any idean abut the ror hosting via live chat. So i
> need to do this as soon as possible. so please any body help me.

First create rails_app folder in public_html (this is not necessary but
I prefer all rails app should be placed there.)

Step1:

Create app in $HOME/rails folder

$HOME/rails: rails app_name

Step 2:
Create a subdomain from the control panel...

create subdomain with any_name (for exmple app_name)
path should be /public_html/rails_app/app_name

Step 3:

Remove app_name dir from the /public_html/rails_app/

rm -rf /public_html/rails_app/app_name

Step 4:
Create symlink for app_name application

ln -s $HOME/rails/app_name/public/ $HOME/public_html/rails_app/app_name

Step 5:

Set .htaccess file

% touch ~/rails/app_name/public/.htaccess

Now, edit the newly created file with your favorite editor and add the
following:

# General Apache options
AddHandler fcgid-script .fcgi

RewriteEngine On

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)/!$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

Let me know if you have any problem in this...or not understand
nething,..

Thanks
Brijesh Shah
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment