不要怂,就是干,撸起袖子干!

Commit 4fae9e74 by Daniel Durante

Added variables for buster-test/npm buster tests for quicker testing.

1 parent cb07b46e
Showing with 4 additions and 4 deletions
...@@ -34,7 +34,7 @@ var BusterHelpers = module.exports = { ...@@ -34,7 +34,7 @@ var BusterHelpers = module.exports = {
var sequelizeOptions = { var sequelizeOptions = {
logging: options.logging, logging: options.logging,
dialect: options.dialect, dialect: options.dialect,
port: config[options.dialect].port port: process.env.SEQ_PORT || config[options.dialect].port
} }
if (process.env.DIALECT === 'postgres-native') { if (process.env.DIALECT === 'postgres-native') {
...@@ -42,9 +42,9 @@ var BusterHelpers = module.exports = { ...@@ -42,9 +42,9 @@ var BusterHelpers = module.exports = {
} }
return new Sequelize( return new Sequelize(
config[options.dialect].database, process.env.SEQ_DB || config[options.dialect].database,
config[options.dialect].username, process.env.SEQ_USER || process.env.SEQ_USERNAME || config[options.dialect].username,
config[options.dialect].password, process.env.SEQ_PW || process.env.SEQ_PASSWORD || config[options.dialect].password,
sequelizeOptions sequelizeOptions
) )
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!