You are here

function hosting_site_get_port in Hostmaster (Aegir) 6

Retrieve the port the site will be available on, so we can redirect.

File

modules/hosting/site/hosting_site.module, line 141

Code

function hosting_site_get_port($node) {
  $platform = node_load($node->platform);
  $server = node_load($platform->web_server);
  return $server->services['http']->port;
}