Skip to content

Commit

Permalink
better message on feather-add
Browse files Browse the repository at this point in the history
  • Loading branch information
zroger committed Oct 2, 2011
1 parent 317df1d commit f33dc0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions feather.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ function drush_feather_add($alias = NULL) {
}

$vhost->save();
drush_log("[Added] {$vhost->name} -> {$vhost->doc_root}", 'ok');

if ($server->is_running()) {
$server->stop();
$server->start();
Expand Down
3 changes: 2 additions & 1 deletion includes/conf-file.inc
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ class FeatherVhostConfFile extends FeatherConfFile {
$this->uri = $uri;
$this->host = parse_url($uri, PHP_URL_HOST);
$this->port = parse_url($uri, PHP_URL_PORT);
$this->name = $this->host .':'. $this->port;

$server = feather_get_server();
$filepath = "{$server->conf_path}/sites/{$this->host}:{$this->port}.conf";
$filepath = "{$server->conf_path}/sites/{$this->name}.conf";

parent::__construct($filepath, 'vhost.tpl.php');
}
Expand Down

0 comments on commit f33dc0b

Please sign in to comment.