purpose of the public directory in a ruby app? -
i'm new ruby. installed phusion passenger , it's working apache2 on ubuntu.
i've followed tutorial: https://www.phusionpassenger.com/documentation/users%20guide%20apache.html#_tutorial_example_writing_and_deploying_a_hello_world_rack_application
what i'm wondering public directory for? tried putting home.ru
had puts "hello world"
. when did that, going browser @ http://localhost:81/home.ru
printed puts "hello world"
instead of hello world
. public directory meant server side scripts @ all? if so, doing wrong?
thanks
the public
directory phone call static files. served as-is web server without kind of processing, , cached browser.
for example, if wanted create web page without kind of dynamic content, drop html , css files there , straight accessible, home.ru
file was.
here's documentation rack::static
.
ruby
No comments:
Post a Comment