change to entry name to postgresql
This commit is contained in:
parent
91e0fed95d
commit
426c2f2adf
2 changed files with 6 additions and 9 deletions
|
|
@ -15,10 +15,13 @@ module.exports = function (options) {
|
||||||
var server
|
var server
|
||||||
var lamassuConfig
|
var lamassuConfig
|
||||||
|
|
||||||
connectionString = options.postgresql ||
|
const psqlUrl = options.postgresql
|
||||||
'postgres://lamassu:lamassu@localhost/lamassu'
|
if (!psqlUrl) {
|
||||||
|
console.log('Missing postgresql entry in configuration file')
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
lamassuConfig = new LamassuConfig(connectionString)
|
lamassuConfig = new LamassuConfig(psqlUrl)
|
||||||
|
|
||||||
const seedPath = options.seedPath || './seeds/seed.txt'
|
const seedPath = options.seedPath || './seeds/seed.txt'
|
||||||
plugins.init(connectionString, seedPath)
|
plugins.init(connectionString, seedPath)
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,4 @@ try {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var psqlUrl = options.postgres
|
|
||||||
if (!psqlUrl) {
|
|
||||||
console.log('Missing postgres entry in configuration file: %s', configPath)
|
|
||||||
process.exit(2)
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = options
|
module.exports = options
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue