From 4f82acf997081a0fd1c42b4c2b809befa0bff462 Mon Sep 17 00:00:00 2001 From: Aaron McLeod Date: Wed, 8 Jan 2020 11:31:53 -0500 Subject: [PATCH] Fix for example on sequelize-cli Added the NODE_ENV property from process.env, was missing in initial documentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7cc5422..c84ab733 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ In the root folder create a file called `sequelize.js`, and add the following co ```javascript const sequelizeConfig = require('./src/config/sequelize.js') -const sequelizeConfigEnv = sequelizeConfig[process.env] || sequelizeConfig.DEFAULT +const sequelizeConfigEnv = sequelizeConfig[process.env.NODE_ENV] || sequelizeConfig.DEFAULT module.exports = sequelizeConfigEnv.sequelize() ```