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

View file

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