var index_src = fs.readFileSync(__dirname + '/src/index.html.tmpl', FILE_ENCODING)\r
.replace(new RegExp('<%base_path%>', 'g'), config.get().http_base_path || '/kiwi');\r
\r
-fs.writeFile(__dirname + '/assets/index.html', index_src, { encoding: FILE_ENCODING }, function (err) {\r
+fs.writeFile(__dirname + '/index.html', index_src, { encoding: FILE_ENCODING }, function (err) {\r
if (!err) {\r
console.log('Built index.html');\r
} else {\r
// Any requests for /client to load the index file
if (request.url.match(new RegExp('^' + base_path_regex + '([/$]|$)', 'i'))) {
- request.url = '/assets/index.html';
+ request.url = '/index.html';
}
// If the 'magic' translation is requested, figure out the best language to use from