Merge branch 'master' into hot-reload

This commit is contained in:
Julian Webb
2021-04-26 11:04:47 -07:00
committed by GitHub
64 changed files with 6903 additions and 473 deletions

View File

@ -10,13 +10,14 @@ const PORT = process.argv[3] || 3000;
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, BUILDDIR, 'index.htm'), {}, function (err) {
if(err){
console.log('error sending file',err);
console.log('error sending file', err);
} else {
console.log("Server: Successfully served index.html");
setTimeout(()=>{
console.log('closing server');
res.app.server.close();
process.exit();
},1000*10);
},1000*10);
}
});
});