uri_parts = uri.pathname.split('/');
subs = uri.pathname.substr(0, 4);
+ public_http_path = kiwi.kiwi_root + '/' + kiwi.config.public_http;
if (uri.pathname === '/js/all.js') {
if (kiwi.cache.alljs === '') {
- public_http_path = kiwi.kiwi_root + '/' + kiwi.config.public_http;
min.underscore = fs.readFileSync(public_http_path + 'js/underscore.min.js');
min.util = fs.readFileSync(public_http_path + 'js/util.js');
}
response.end();
} else {
- fs.readFile(__dirname + '/client/index.html.jade', 'utf8', function (err, str) {
+ fs.readFile(public_http_path + 'index.html.jade', 'utf8', function (err, str) {
var html, hash2;
if (!err) {
try {
}
} catch (e) {
response.statusCode = 500;
+ console.log(e);
}
} else {
+ console.log(err);
response.statusCode = 500;
}
response.end();