Fixex the deployment issues, read more

The deployment issues were caused by sequelize running out-of-order.
I fixed this by placing sequelize.sync() in correct locations.

I've also updated news-server with these changes.

I've also removed mariadb stuff from the game server's Dockerfile.

Resolved #1
This commit is contained in:
2021-03-03 23:32:27 +00:00
parent b0ac371a43
commit 488f975e98
4 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -4,9 +4,9 @@ const sequelize = new Sequelize(process.env.DB_DATABASE, process.env.DB_USERNAME
host: process.env.DB_HOSTNAME,
dialect: 'mariadb',
timezone: process.env.DB_TIMEZONE,
logging: false
// logging: false
});
sequelize.sync();
module.exports = sequelize;
module.exports = sequelize;