Skip to content

Commit 26ad193

Browse files
committed
Fixed bug with XAMPP vhosts generator
1 parent 3615aa9 commit 26ad193

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.DS_Store

8 KB
Binary file not shown.

data/xampp.vhost

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
ServerName [domain]
44
ServerAlias [domain]
55
DocumentRoot "[root]"
6-
ErrorLog logs/[project].log
7-
CustomLog logs/[project].log combined
6+
ErrorLog "logs/[project].log"
7+
CustomLog "logs/[project].log" combined
88
<Directory "[root]">
99
Options FollowSymLinks Indexes
1010
AllowOverride All

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "edit-virtual-hosts",
3-
"version": "0.6.3",
3+
"version": "0.6.4",
44
"description": "Edit Virtual Hosts",
55
"main": "main.js",
66
"repository": "https://github.com/manngo/edit-virtual-hosts",

scripts/edit-virtual-hosts.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,8 @@ console.log(`Tab: ${t}\nValue: ${value}\nStatus: ${status}`);
423423
}
424424
}
425425
else {
426-
tabMessage(tab,'Saved','saved');
426+
tabs[tab].button.removeAttribute('data-status');
427+
tabMessage(tab,'Saved','saved');
427428
}
428429
});
429430
}
@@ -580,9 +581,11 @@ console.log(more);
580581
event.preventDefault();
581582
if(!server) return;
582583
var vhostdefault = form['vhost-default'].checked ? servers[server].vhostdefault+os.EOL+os.EOL : '';
584+
vhost=vhost.sprintf({
585+
htdocs: serverRoot+servers[server][platform].htdocs
586+
});
583587
var vhost = vhostdefault+servers[server].vhost;
584588
vhost=vhost.sprintf({
585-
htdocs: serverRoot+servers[server][platform].htdocs,
586589
project: form.elements.project.value,
587590
domain: form.elements.domain.value,
588591
root: form.elements.root.value,

0 commit comments

Comments
 (0)