Docker build. Catch client routes on server. Initial config utility

This commit is contained in:
unknown
2021-06-07 13:40:51 +02:00
parent d2e6ebae4f
commit 1636b705de
10 changed files with 125 additions and 13 deletions

4
db.js
View File

@@ -9,13 +9,13 @@ const sequelize = new Sequelize({
const connectDB = async () => {
try {
await sequelize.authenticate({ logging: false });
console.log('Connected to database'.cyan.underline);
console.log('Connected to database');
await sequelize.sync({
// alter: true,
logging: false
});
console.log('All models were synced'.cyan.underline);
console.log('All models were synced');
} catch (error) {
console.error('Unable to connect to the database:', error);
}