WIP server side.

This commit is contained in:
Ahmed Bouhuolia
2020-01-22 02:09:45 +02:00
parent de905d7e7c
commit 488709088b
123 changed files with 14885 additions and 771 deletions

View File

@@ -1,6 +1,7 @@
require('dotenv').config();
const MIGRATIONS_DIR = `./${__dirname}/src/database/migrations`;
const SEEDS_DIR = `./${__dirname}/src/database/seeds`;
const MIGRATIONS_DIR = './src/database/migrations';
const SEEDS_DIR = './src/database/seeds';
module.exports = {
test: {
@@ -9,10 +10,10 @@ module.exports = {
directory: MIGRATIONS_DIR,
},
connection: {
host: '172.17.0.2',
user: 'root',
password: 'root',
database: 'moosher',
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
charset: 'utf8',
},
},