d6832a177f
Now brower error: ``` error: cdb_dataservices_client._cdb_service_quota_info(2): [cartodb_dev_user_5357a703-8b69-48d4-b114-122e9498aca7_db] REMOTE ERROR: spiexceptions.ExternalRoutineException: cartodb_services.metrics.config.ConfigException: Here maps configuration missing↵ at Connection.parseE (/CartoDB-SQL-API/node_modules/cartodb-psql/node_modules/pg/lib/connection.js:560:11)↵ at Connection.parseMessage (/CartoDB-SQL-API/node_modules/cartodb-psql/node_modules/pg/lib/connection.js:383:17)↵ at Socket.<anonymous> (/CartoDB-SQL-API/node_modules/cartodb-psql/node_modules/pg/lib/connection.js:119:22)↵ at Socket.emit (events.js:95:17)↵ at Socket.<anonymous> (_stream_readable.js:765:14)↵ at Socket.emit (events.js:92:17)↵ at emitReadable_ (_stream_readable.js:427:10)↵ at emitReadable (_stream_readable.js:423:5)↵ at readableAddChunk (_stream_readable.js:166:9)↵ at Socket.Readable.push (_stream_readable.js:128:10)↵ at TCP.onread (net.js:529:21)" Name ``` When map without geometry is opened.
23 lines
1.4 KiB
Bash
23 lines
1.4 KiB
Bash
cd /cartodb
|
|
source /usr/local/rvm/scripts/rvm
|
|
|
|
ORGANIZATION_NAME="example"
|
|
USERNAME="admin4example"
|
|
EMAIL="admin@example.com"
|
|
PASSWORD="pass1234"
|
|
|
|
rake cartodb:db:create_user EMAIL="${EMAIL}" PASSWORD="${PASSWORD}" SUBDOMAIN="${USERNAME}"
|
|
rake cartodb:db:set_unlimited_table_quota["${USERNAME}"]
|
|
rake cartodb:db:create_new_organization_with_owner ORGANIZATION_NAME="${ORGANIZATION_NAME}" USERNAME="${USERNAME}" ORGANIZATION_SEATS=100 ORGANIZATION_QUOTA=102400 ORGANIZATION_DISPLAY_NAME="${ORGANIZATION_NAME}"
|
|
rake cartodb:db:set_organization_quota[$ORGANIZATION_NAME,5000]
|
|
rake cartodb:db:configure_geocoder_extension_for_organizations[$ORGANIZATION_NAME]
|
|
|
|
# Set dataservices server
|
|
ORGANIZATION_DB=`echo "SELECT database_name FROM users WHERE username='admin4example'" | psql -A -U postgres -t carto_db_development`
|
|
psql -U postgres $ORGANIZATION_DB < /cartodb/script/geocoder_client.sql
|
|
echo "CREATE EXTENSION cdb_dataservices_client;" | psql -U postgres $ORGANIZATION_DB
|
|
echo "SELECT CDB_Conf_SetConf('user_config', '{"'"is_organization"'": true, "'"entity_name"'": "'"example"'"}');" | psql -U postgres $ORGANIZATION_DB
|
|
GEOCODER_DB=`echo "SELECT database_name FROM users WHERE username='geocoder'" | psql -A -U postgres -t carto_db_development`
|
|
echo -e "SELECT CDB_Conf_SetConf('geocoder_server_config', '{ \"connection_str\": \"host=localhost port=5432 dbname=${GEOCODER_DB} user=postgres\"}');" | psql -U postgres $ORGANIZATION_DB
|
|
|