BUGFIX: Wasn't cooperating on MERN-template deployment

This commit is contained in:
2021-03-04 09:05:48 +11:00
parent de57c6e18a
commit 2710b0e014
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -24,6 +24,7 @@ app.get('*', (req, res) => {
});
//startup
server.listen(process.env.WEB_PORT || 3100, (err) => {
server.listen(process.env.WEB_PORT || 3100, async (err) => {
await database.sync();
console.log(`listening to localhost:${process.env.WEB_PORT || 3100}`);
});