Hi, I created my app on shared host in home folder, it's called
"first". OK then I following to the tutorial I runned in putty(CMD or
Terminal) [~]# mv public_html public_html_bk
[~]# ln -s yournewrailsapp/public public_html
so now browser looks for my first/public folder, BUT the problem is
that I deleted default index.html file in rails app public folder and
created welcome controller + index.html.erb file under views->welcome,
now when I go to www.mydomain.com I can see in browser just ordered
files and folders from my public folder, it doesn't show up my created
layout, why it doesn't show and how can I fix it to able to see my
layout
Hi, I created my app on shared host in home folder, it's called
"first". OK then I following to the tutorial I runned in putty(CMD or
Terminal) [~]# mv public_html public_html_bk
[~]# ln -s yournewrailsapp/public public_html
so now browser looks for my first/public folder, BUT the problem is
that I deleted default index.html file in rails app public folder and
created welcome controller + index.html.erb file under views->welcome,
now when I go to www.mydomain.com I can see in browser just ordered
files and folders from my public folder, it doesn't show up my created
layout, why it doesn't show and how can I fix it to able to see my
layout
You can't run a Rails app like that, because the Ruby interpreter won't
be invoked, so all you'll see in the browser is your source files. What
host are you using, and how do they recommend deploying your Rails
applications?
create a symlink to point to the public folder and enable the shebang.
different hosting company has different configuration.
can you tell me which hosting company you had?
all you have to make is to read and understand .htaccess?
when you create a domain you must point to the public folder as running document root.