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 lamassuConfig
|
||||
|
||||
connectionString = options.postgresql ||
|
||||
'postgres://lamassu:lamassu@localhost/lamassu'
|
||||
const psqlUrl = options.postgresql
|
||||
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'
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue