prod test

This commit is contained in:
matteo
2019-02-20 00:19:59 +01:00
parent 0340f45cd7
commit 70be1d815c
3 changed files with 4 additions and 3 deletions
+3
View File
@@ -97,5 +97,8 @@ low(new FileAsync(__dirname + '/db.json')) // production
})
.then(() => {
app.use(express.static(__dirname + '/build')); // serve static build site
app.get('*', (req,res) =>{
res.sendFile(__dirname+'/build/index.html');
});
app.listen(8000, () => console.log('listen on 8000')); // bind to port 8000 as required from specs
});