Avoid breaking changes

This commit is contained in:
Daniel García Aubert 2018-05-25 14:44:58 +02:00
parent 5938836ff5
commit bbab9c1a6b

View File

@ -127,7 +127,7 @@ module.exports = {
// TODO: allow to specify in configuration
srid: 3857
},
datasource: rendererConfig.mapnik.postgis,
datasource: rendererConfig.mapnik.postgis || global.environment.postgres || {},
cachedir: global.environment.millstone.cache_basedir,
use_workers: rendererConfig.mapnik.useCartocssWorkers || false,
mapnik_version: global.environment.mapnik_version,