Forum: Ruby on Rails How can I use rails in my public_html

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B68c07c166a4ec20734a936ce6aad8f7?d=identicon&s=25 Tristan (Guest)
on 2008-12-06 06:32
(Received via mailing list)
I have no root permission on the server, only a public_html in my
$HOME.
The http server is not apache; it only support cgi script.

Can I use rails in my public_html?
232f6365e90c57dbe4be9fdbbf4fb1ab?d=identicon&s=25 Matt (Guest)
on 2008-12-06 17:07
(Received via mailing list)
I would find another host, personally. Ideally you would want the
actual Rails application to live outside of public_html. I always put
mine in $HOME and create a symbolic link from $HOME/public_html to
RailsAppDir/public and that works fine.

You could most likely make this work if you wanted to use mod_rewrite
and a custom .htaccess files to route all reqests going to / to /
RailsApp/public/dispatch.fcgi -- Actually, in thinking about it, you
could just modify the original rails .htaccess file to do this.

You'd probably need to put the rails app inside the cgi-bin though, if
you don't have permission to change the permissions on files to make
dispatch executable.
247cd3d37084a3d6794076207bd9fbd7?d=identicon&s=25 Bobnation (Guest)
on 2008-12-06 19:25
(Received via mailing list)
I would echo Matt in many ways. If possible, I recommend getting a VPS
somewhere and working with that because you will learn a lot of
valuable information about how Rails works.
B68c07c166a4ec20734a936ce6aad8f7?d=identicon&s=25 Tristan (Guest)
on 2008-12-07 14:18
(Received via mailing list)
Thanks for your suggestion.

The difficult thing is our http server is not apache, so mod_rewrite
is not available.

The only way is to use cgi script, i think.
But i have no idea how rails can be used only in a cgi approach.
This topic is locked and can not be replied to.