Added support for server_name in nino, and openshift

This commit is contained in:
Jocelyn Fiat
2012-12-20 15:41:18 +01:00
parent b4c8c70360
commit 394ca05579
2 changed files with 16 additions and 1 deletions

View File

@@ -38,6 +38,13 @@ feature {NONE} -- Initialization
do
Precursor
create l_env
if attached l_env.get (Openshift_ip) as l_ip then
server_name := l_ip.to_string_8
else
die (Openshift_ip + " is not defined")
end
if attached l_env.get (Openshift_port) as l_port then
if l_port.is_integer then
port_number := l_port.to_integer
@@ -67,7 +74,7 @@ feature {NONE} -- Implementation
Openshift_port: STRING = "OPENSHIFT_INTERNAL_PORT"
-- OpenShift port environment variable name
;note
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"