Go to file
Mario de Frutos b417e8f1fc Merge pull request #67 from CartoDB/add_needed_security_changes_for_v2
Add security definer to connect redis function too
2016-01-26 13:16:37 +01:00
client Extract the username and the orgname as strings 2016-01-22 19:18:34 +01:00
doc edits error example 2015-12-09 13:23:59 +01:00
server Add security definer to connect redis function too 2016-01-26 13:15:15 +01:00
test Fixed geocode street point integration tests 2016-01-25 18:48:27 +01:00
.gitignore New Redis structure for services 2015-11-23 09:40:10 +01:00
interface_0.0.1.yaml Tests and interfaces versioned 2016-01-22 13:05:33 +01:00
interface_0.1.0.yaml Tests and interfaces versioned 2016-01-22 13:05:33 +01:00
LICENSE Add LICENSE file 2015-12-22 18:13:46 +01:00
README.md Add deploy instructions to readme 2016-01-25 16:40:36 +01:00
sql-template-renderer Dont use the defaults in the grant script 2016-01-22 10:55:07 +01:00

geocoder-api

The CartoDB Geocoder SQL API (server and client FTM)

Deploy instructions

Steps to deploy a new Geocoder API version :

  • Deploy new version of geocoder API to all servers
  • Update the server user using: ALTER EXTENSION cdb_geocoder_server UPDATE TO '<CURRENT_VERSION>';
  • Update the python dependencies if needed: cartodb_geocoder and heremaps
  • Add the needed config in the cdb_conf table:
    • redis_metadata_config and redis_metrics_conf
      • {"sentinel_host": "localhost", "sentinel_port": 26739, "sentinel_master_id": "mymaster", "timeout": 0.1, "redis_db": 5}
    • heremaps_conf
      • {"app_id": "APP_ID", "app_code": "APP_CODE"}
  • Deploy the client to all the servers with the new version
  • Deploy the editor with the new geocoder api version changed (https://github.com/CartoDB/cartodb/blob/master/app/models/user/db_service.rb#L18)
  • Execute the rails task to update first the CartoDB team organizaton to test in production
    • RAILS_ENV=production bundle exec rake cartodb:db:configure_geocoder_extension_for_organizations['team']
  • Check if all works perfectly for our team. If so, execute the rake tasks to update all the users and organizations:
    • RAILS_ENV=production bundle exec rake cartodb:db:configure_geocoder_extension_for_organizations['', true]
    • RAILS_ENV=production bundle exec rake cartodb:db:configure_geocoder_extension_for_non_org_users['', true]