Rails on remote Apache server not displaying index.html.erb -
i played around rails on laptop (running linux + apache + mysql) , had no trouble getting getting started rails tutorial work locally. i'm trying same thing @ work on remote mac os x + apache server, , things aren't quite rosy.
i typed rails blog -d mysql
create directory called blog
in /library/webserver/documents/mydirectory
. trouble is, if go server.com/mydirectory/public
, public/index.html
in browser. but, don't file if go server.com/mydirectory/
. instead, 403 error. also, when i:
script/generate controller home index
to create:
app/views/home/index.html.erb
i unable view file, whether go server.com/mydirectory/home/index
, or if add new line (map.root :controller => "home"
) config/routes.rb
, go server.com/mydirectory
.
am missing obvious apache , rails?
apache not support rails out of box. have mod_rails aka passenger installed. or, use server comes rails, easier (but not suitable production). this, go directory , ./script/server
.
Comments
Post a Comment