mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
print out server URL root
This commit is contained in:
parent
c6a388967e
commit
31e13523b6
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue