Files
Windshaft-cartodb/tools/multilayer_token
T
Sandro Santilli d53327bc33 Utility to fetch a token from a layergroup config
It's in its infancy, still need to edit the script to use against
remote service or non-standard local deploys
2013-06-11 17:15:02 +02:00

16 lines
264 B
Bash
Executable File

#!/bin/sh
if test -z "$1"; then
echo "Usage: $0 <config_file>" >&2
exit 1
fi
cfg=$1
port=8181
user=dev
domain=localhost.lan
proto=http
curl -k -H Content-Type:application/json --data-binary "@${cfg}" ${proto}://${user}.${domain}:${port}/tiles/layergroup/