summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Rossouw2008-06-27 10:58:28 +0000
committeradrian2008-06-27 10:58:28 +0000
commit57a999dedf7949458e18fb4bbf89ebc3740feb5e (patch)
tree7ba2b82571a81035b61a4a67db04a011db5b64d2
parent1766db3de286386a0b2b4f14b48b70a3ef6973eb (diff)
Fix issue with redirect failing --uri needs the http:// to work properly, it was writing the vhost file as http:///domain.com5.x-0.1-alpha2
-rw-r--r--provision.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/provision.module b/provision.module
index 0550fd1..7e66bd2 100644
--- a/provision.module
+++ b/provision.module
@@ -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');