From 555ae80afc65587593d8ffe58f371bdf63d541f5 Mon Sep 17 00:00:00 2001 From: JayWll Date: Sat, 11 Apr 2020 12:29:56 -0600 Subject: [PATCH] Simplifying database connection options --- nodeapp/app.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/nodeapp/app.js b/nodeapp/app.js index 6a3ea80..e775a82 100644 --- a/nodeapp/app.js +++ b/nodeapp/app.js @@ -2,20 +2,11 @@ const express = require('express'); const Sequelize = require('sequelize'); const Op = Sequelize.Op -//const request = require('request'); // TEMPORARY! Used for import function. const app = express(); // Setup database, using credentials set in .env var sequelize = new Sequelize('database', process.env.DB_USER, process.env.DB_PASS, { - host: '0.0.0.0', dialect: 'sqlite', - pool: { - max: 5, - min: 0, - idle: 10000 - }, - // Security note: the database is saved to the file `database.sqlite` on the local filesystem. It's deliberately placed in the `.data` directory - // which doesn't get copied if someone remixes the project. storage: '.data/database.sqlite' }); var Readings;