The process of deploying rails app for a single domain is pretty simple and is documented in the following link. I ran into problem when I tried to deploy another rails app for an alias domain running on the same share host account. So here is the general steps:
- create a rails directory for your new app. Let’s call it mysecondapp. Upload your rails app in mysecondapp directory.
- create a symbolic link to mysecondapp (let’s call the new symbolic link mysecondlink)
- create your alias domain and have the root path point to the symbolic link: mysecondlink. Let’s say your alias domain is myseconddomain.com. It’s content root will be mysecondlink.
- This is very important step: change your dispatch.cgi for dispatch.fcgi to include the following line: “RewriteBase /” to set the base to the root directory so that it won’t try to find the dispatcher based on the related directory to the current content directory.
That is it. Godaddy’s support is no help. Asked them and they just give you the run around.