Browse Source

Minor fix of npath.webRoot returning NaN

tags/v0.2.0
Muthu Kumar 7 years ago
parent
commit
21ebc4b43d
  1. 2
      actions/createStaticServer.js

2
actions/createStaticServer.js

@ -12,7 +12,7 @@ function createStaticServer(domain, outPort = 80) {
"server {" + EOL + "server {" + EOL +
" listen " + outPort + ";" + EOL + " listen " + outPort + ";" + EOL +
" listen [::]:" + outPort + ";" + EOL + " listen [::]:" + outPort + ";" + EOL +
" root " + npath.webRoot() + + domain + ";" + EOL + " root " + npath.webRoot() + domain + ";" + EOL +
" index index.html index.htm;" + EOL + " index index.html index.htm;" + EOL +
"" + EOL + "" + EOL +
" server_name " + domain + ";" + EOL + " server_name " + domain + ";" + EOL +

Loading…
Cancel
Save