From d280480b5cc3246a04f74cff20309ba5b7ea401a Mon Sep 17 00:00:00 2001
From: Oliver Facklam <oliver.facklam@polytechnique.edu>
Date: Sat, 9 Feb 2019 12:37:42 +0100
Subject: [PATCH] knexfile path.resolve pour le .env

---
 db/knexfile.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db/knexfile.js b/db/knexfile.js
index 4f0e7a7..8b190e3 100644
--- a/db/knexfile.js
+++ b/db/knexfile.js
@@ -8,8 +8,8 @@
  * et c'est knex_router.js qui donne la configuration de knex.js à proprement parler (i.e. les méthodes knex.insert(...) dans le code javascript)
  * @author manifold
  */
-require('dotenv').config();
 const path = require('path');
+require('dotenv').config({ path: path.resolve('..', './.env') });
 
 const knexConfig = {
     migrations: {
-- 
GitLab