print out server URL root

This commit is contained in:
Sami Samhuri 2015-03-30 05:15:31 +00:00
parent c6a388967e
commit 31e13523b6

View file

@ -57,6 +57,7 @@ end
host = $config[:hostname] || $config[:host]
$url_root = "http://#{host}:#{$config[:port]}/"
puts "URL root: #{$url_root}"
def url_for(*components)
File.join($url_root, *components)
end