change to entry name to postgresql

This commit is contained in:
Josh Harvey 2016-06-12 15:14:10 +03:00
parent 91e0fed95d
commit 426c2f2adf
2 changed files with 6 additions and 9 deletions

View file

@ -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)