mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Merge branch 'master' into hot-reload
This commit is contained in:
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user