Compare commits

..

12 Commits

Author SHA1 Message Date
Raul Ochoa
6c3e2513d5 Release 1.18.2 2014-10-13 16:28:15 +02:00
Raul Ochoa
cc50364453 Upgrades windshaft to 0.28.1 2014-10-13 16:19:32 +02:00
Raul Ochoa
774104b34e Defaults resultSet to object if undefined in QueryTablesApi 2014-10-13 15:24:14 +02:00
Raul Ochoa
5a3e427249 Stubs next version 2014-10-13 11:50:21 +02:00
Raul Ochoa
a9e2f95fdb Release 1.18.1 2014-10-13 11:48:57 +02:00
Raul Ochoa
d89b2986fd Allow to add more node.js' threadpool workers via process.env.UV_THREADPOOL_SIZE 2014-10-08 16:50:35 +02:00
Raul Ochoa
91229dd1e1 Merge pull request #219 from strk/master-ignores
Ignore files produced by "make check"
2014-10-08 10:41:06 +02:00
Sandro Santilli
f52c65ea25 Ignore files produced by "make check" 2014-10-08 10:33:19 +02:00
Raul Ochoa
8fd6e22dc4 Stubs next version 2014-10-03 17:05:20 +02:00
Raul Ochoa
474198b4e1 Release 1.18.0 2014-10-03 17:03:50 +02:00
Raul Ochoa
fbdafcb7b7 Comes back to use mapnik 2.3.x based on cartodb/node-mapnik@1.4.15-cdb from windshaft@0.28.0 2014-10-03 16:57:04 +02:00
Raul Ochoa
9b0232c48d Stubs next version 2014-10-01 20:28:47 +02:00
10 changed files with 316 additions and 29 deletions

2
.gitignore vendored
View File

@@ -5,3 +5,5 @@ config/environments/*.js
tools/munin/windshaft.conf
logs/
pids/
redis.pid
test.log

24
NEWS.md
View File

@@ -1,3 +1,27 @@
1.18.2 -- 2014-10-13
--------------------
Bug fixes:
- Defaults resultSet to object if undefined in QueryTablesApi
Announcements:
- Upgrades windshaft to 0.28.1
1.18.1 -- 2014-10-13
--------------------
New features:
- Allow to add more node.js' threadpool workers via process.env.UV_THREADPOOL_SIZE
1.18.0 -- 2014-10-03
--------------------
Announcements:
- Comes back to use mapnik 2.3.x based on cartodb/node-mapnik@1.4.15-cdb from windshaft@0.28.0
1.17.2 -- 2014-10-01
--------------------

4
app.js
View File

@@ -37,6 +37,10 @@ log4js_config = {
replaceConsole:true
};
if (global.environment.uv_threadpool_size) {
process.env.UV_THREADPOOL_SIZE = global.environment.uv_threadpool_size;
}
if ( global.environment.log_filename ) {
var logdir = path.dirname(global.environment.log_filename);
// See cwd inlog4js.configure call below

View File

@@ -2,6 +2,7 @@ var config = {
environment: 'development'
,port: 8181
,host: '127.0.0.1'
,uv_threadpool_size: undefined
// Regular expression pattern to extract username
// from hostname. Must have a single grabbing block.
,user_from_host: '^(.*)\\.localhost'

View File

@@ -2,6 +2,7 @@ var config = {
environment: 'production'
,port: 8181
,host: '127.0.0.1'
,uv_threadpool_size: undefined
// Regular expression pattern to extract username
// from hostname. Must have a single grabbing block.
,user_from_host: '^(.*)\\.cartodb\\.com$'

View File

@@ -2,6 +2,7 @@ var config = {
environment: 'production'
,port: 8181
,host: '127.0.0.1'
,uv_threadpool_size: undefined
// Regular expression pattern to extract username
// from hostname. Must have a single grabbing block.
,user_from_host: '^(.*)\\.cartodb\\.com$'

View File

@@ -2,6 +2,7 @@ var config = {
environment: 'test'
,port: 8888
,host: '127.0.0.1'
,uv_threadpool_size: undefined
// Regular expression pattern to extract username
// from hostname. Must have a single grabbing block.
,user_from_host: '(.*)'

View File

@@ -93,6 +93,7 @@ function runQuery(username, options, query, queryHandler, callback) {
if (shouldQueryPostgresDirectly()) {
var psql = new PSQL(options);
psql.query(query, function(err, resultSet) {
resultSet = resultSet || {};
var rows = resultSet.rows || [];
queryHandler(err, rows, callback);
});

306
npm-shrinkwrap.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "windshaft-cartodb",
"version": "1.17.2",
"version": "1.18.2",
"dependencies": {
"node-varnish": {
"version": "0.3.0",
@@ -13,8 +13,8 @@
"version": "1.0.2"
},
"windshaft": {
"version": "0.27.2",
"from": "https://github.com/CartoDB/Windshaft/tarball/0.27.2",
"version": "0.28.1",
"from": "https://github.com/CartoDB/Windshaft/tarball/0.28.1",
"dependencies": {
"chronograph": {
"version": "0.1.0",
@@ -899,8 +899,252 @@
}
},
"mapnik": {
"version": "0.7.26-cdb1",
"from": "http://github.com/Vizzuality/node-mapnik/tarball/0.7.26-cdb1"
"version": "1.4.15",
"from": "https://github.com/CartoDB/node-mapnik/tarball/1.4.15-cdb",
"dependencies": {
"nan": {
"version": "1.2.0"
},
"mapnik-vector-tile": {
"version": "0.5.5"
},
"node-pre-gyp": {
"version": "0.5.25",
"dependencies": {
"nopt": {
"version": "3.0.1",
"dependencies": {
"abbrev": {
"version": "1.0.5"
}
}
},
"npmlog": {
"version": "0.1.1",
"dependencies": {
"ansi": {
"version": "0.3.0"
}
}
},
"request": {
"version": "2.40.0",
"dependencies": {
"qs": {
"version": "1.0.2"
},
"json-stringify-safe": {
"version": "5.0.0"
},
"mime-types": {
"version": "1.0.2"
},
"forever-agent": {
"version": "0.5.2"
},
"node-uuid": {
"version": "1.4.1"
},
"tough-cookie": {
"version": "0.12.1",
"dependencies": {
"punycode": {
"version": "1.3.1"
}
}
},
"form-data": {
"version": "0.1.4",
"dependencies": {
"combined-stream": {
"version": "0.0.5",
"dependencies": {
"delayed-stream": {
"version": "0.0.5"
}
}
},
"mime": {
"version": "1.2.11"
},
"async": {
"version": "0.9.0"
}
}
},
"tunnel-agent": {
"version": "0.4.0"
},
"http-signature": {
"version": "0.10.0",
"dependencies": {
"assert-plus": {
"version": "0.1.2"
},
"asn1": {
"version": "0.1.11"
},
"ctype": {
"version": "0.5.2"
}
}
},
"oauth-sign": {
"version": "0.3.0"
},
"hawk": {
"version": "1.1.1",
"dependencies": {
"hoek": {
"version": "0.9.1"
},
"boom": {
"version": "0.4.2"
},
"cryptiles": {
"version": "0.2.2"
},
"sntp": {
"version": "0.2.4"
}
}
},
"aws-sign2": {
"version": "0.5.0"
},
"stringstream": {
"version": "0.0.4"
}
}
},
"semver": {
"version": "3.0.1"
},
"tar": {
"version": "1.0.1",
"dependencies": {
"block-stream": {
"version": "0.0.7"
},
"fstream": {
"version": "1.0.2",
"dependencies": {
"graceful-fs": {
"version": "3.0.2"
}
}
},
"inherits": {
"version": "2.0.1"
}
}
},
"tar-pack": {
"version": "2.0.0",
"dependencies": {
"uid-number": {
"version": "0.0.3"
},
"once": {
"version": "1.1.1"
},
"debug": {
"version": "0.7.4"
},
"fstream": {
"version": "0.1.31",
"dependencies": {
"graceful-fs": {
"version": "3.0.2"
},
"inherits": {
"version": "2.0.1"
}
}
},
"tar": {
"version": "0.1.20",
"dependencies": {
"block-stream": {
"version": "0.0.7"
},
"inherits": {
"version": "2.0.1"
}
}
},
"fstream-ignore": {
"version": "0.0.7",
"dependencies": {
"minimatch": {
"version": "0.2.14",
"dependencies": {
"lru-cache": {
"version": "2.5.0"
},
"sigmund": {
"version": "1.0.0"
}
}
},
"inherits": {
"version": "2.0.1"
}
}
},
"readable-stream": {
"version": "1.0.31",
"dependencies": {
"core-util-is": {
"version": "1.0.1"
},
"isarray": {
"version": "0.0.1"
},
"string_decoder": {
"version": "0.10.31"
},
"inherits": {
"version": "2.0.1"
}
}
},
"graceful-fs": {
"version": "1.2.3"
}
}
},
"mkdirp": {
"version": "0.5.0",
"dependencies": {
"minimist": {
"version": "0.0.8"
}
}
},
"rc": {
"version": "0.5.1",
"dependencies": {
"minimist": {
"version": "0.0.10"
},
"deep-extend": {
"version": "0.2.11"
},
"strip-json-comments": {
"version": "0.1.3"
},
"ini": {
"version": "1.1.0"
}
}
},
"rimraf": {
"version": "2.2.8"
}
}
}
}
},
"tilelive": {
"version": "4.5.3",
@@ -1042,7 +1286,7 @@
"version": "0.2.10"
},
"readable-stream": {
"version": "1.0.32",
"version": "1.0.33-1",
"dependencies": {
"core-util-is": {
"version": "1.0.1"
@@ -1084,27 +1328,10 @@
"version": "0.8.2"
},
"mocha": {
"version": "1.21.4",
"version": "1.21.5",
"dependencies": {
"commander": {
"version": "2.0.0"
},
"growl": {
"version": "1.8.1"
},
"jade": {
"version": "0.26.3",
"dependencies": {
"commander": {
"version": "0.6.1"
},
"mkdirp": {
"version": "0.3.0"
}
}
},
"diff": {
"version": "1.0.7"
"version": "2.3.0"
},
"debug": {
"version": "2.0.0",
@@ -1114,8 +1341,11 @@
}
}
},
"mkdirp": {
"version": "0.3.5"
"diff": {
"version": "1.0.8"
},
"escape-string-regexp": {
"version": "1.0.2"
},
"glob": {
"version": "3.2.3",
@@ -1138,6 +1368,28 @@
"version": "2.0.1"
}
}
},
"growl": {
"version": "1.8.1"
},
"jade": {
"version": "0.26.3",
"dependencies": {
"commander": {
"version": "0.6.1"
},
"mkdirp": {
"version": "0.3.0"
}
}
},
"mkdirp": {
"version": "0.5.0",
"dependencies": {
"minimist": {
"version": "0.0.8"
}
}
}
}
}

View File

@@ -1,7 +1,7 @@
{
"private": true,
"name": "windshaft-cartodb",
"version": "1.17.2",
"version": "1.18.2",
"description": "A map tile server for CartoDB",
"keywords": [
"cartodb"
@@ -25,7 +25,7 @@
"node-varnish": "https://github.com/Vizzuality/node-varnish/tarball/0.3.0",
"underscore" : "~1.6.0",
"dot": "~1.0.2",
"windshaft": "https://github.com/CartoDB/Windshaft/tarball/0.27.2",
"windshaft": "https://github.com/CartoDB/Windshaft/tarball/0.28.1",
"step": "~0.0.5",
"request": "~2.9.203",
"cartodb-redis": "https://github.com/CartoDB/node-cartodb-redis/tarball/0.11.0",