Commit 57a999de authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Fix issue with redirect failing --uri needs the http:// to work properly, it...

Fix issue with redirect failing --uri needs the http:// to work properly, it was writing the vhost file as http:///domain.com
parent 1766db3d
......@@ -51,13 +51,12 @@ function provision_init() {
// Set up defines for platform
if (function_exists('drush_get_option')) {
$docroot = drush_get_option(array("r", "root"), $_SERVER['PWD']);
define('PROVISION_DOMAIN', drush_get_option(array('l', 'uri'), $_SERVER['HTTP_HOST']));
}
else {
define('PROVISION_DOMAIN', $_SERVER['HTTP_HOST']);
$docroot = $_SERVER['pwd'];
}
define('PROVISION_DOMAIN', $_SERVER['HTTP_HOST']);
$path = ($docroot) ? $docroot : $_SERVER['DOCUMENT_ROOT'];
define('PROVISION_DOCROOT_PATH', rtrim($path, '/'));
define('PROVISION_SITES_PATH', rtrim($path, '/') . '/sites');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment