2013-06-11 23:13:50 +08:00
|
|
|
#!/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
|
2013-06-13 00:30:32 +08:00
|
|
|
path="tiles/layergroup"
|
2013-06-11 23:13:50 +08:00
|
|
|
|
2013-06-13 00:30:32 +08:00
|
|
|
# This is for direct windshaft connection
|
|
|
|
#port=8083
|
|
|
|
#path="database/cartodb_dev_user_1_db/layergroup"
|
2013-06-11 23:13:50 +08:00
|
|
|
|
2013-06-13 00:30:32 +08:00
|
|
|
curl -skH Content-Type:application/json --data-binary "@${cfg}" ${proto}://${user}.${domain}:${port}/${path}
|