Post Webhosting

A client of mine has godaddy.com as a web host. I insisted on using
rails for dev, and the client agreed. Godaddy is absolutely horrible w/
their rails support and I have one remaining question. I’ve been able
to deploy the app but they way they have hosting setup I must have the
application below the root directory in some other directory

www.ex.com/useless/

how can I have www.ex.com point to where i have the data. Currently
godaddy doesn’t allow a symbolic link to be created at the root level,
it must have a name. For example useless => real_rails_app_dir.

Any ideas, thanks,
Tom

Tom Hartwell wrote:

it must have a name. For example useless => real_rails_app_dir.

Any ideas, thanks,
Tom

Hi Tom,
did you try setting with base_url or mod_alias?

http://wiki.rubyonrails.org/rails/pages/HowToSetTheBaseURLsOfYourRailsApps


Bojan M.
Informatika Mihelac, Bojan M. s.p. | www.informatikamihelac.com
→ tools, scripts, tricks from our code lab: http://source.mihelac.org

Here’s what I’ve discovered…

I can use mod_rewrite so that when a browser hits:
http://www.example.com there is a redirect to
http://www.example.com/directory

http://www.example.com/directory is actually a symlink to the rails
public directory

This works, but the url obviously not written as http://www.example.com

Godaddy does not support ssh so I cannot create a symlink at / pointing
to /rails-public-dir

As far as I can tell from the tutorial you sent out, what I want to do
is not possible with mod_rewrite (which has all of mod_alias’
functionality)

Thanks for the link, though, it was a very thorough wiki article.

Any other suggestions?

Thanks,
Tom

Bojan M. wrote:

Tom Hartwell wrote:

it must have a name. For example useless => real_rails_app_dir.

Any ideas, thanks,
Tom

Hi Tom,
did you try setting with base_url or mod_alias?

http://wiki.rubyonrails.org/rails/pages/HowToSetTheBaseURLsOfYourRailsApps


Bojan M.
Informatika Mihelac, Bojan M. s.p. | www.informatikamihelac.com
→ tools, scripts, tricks from our code lab: http://source.mihelac.org