Skip to content

Changing configuration values

slhck edited this page Jul 17, 2012 · 3 revisions

There are a couple of predefined values that you might want to change when deploying or developing maphub. These include API keys, paths to servers, et cetera.

Open the file config/environments/development.rb and change the following configuration values if necessary.

  • config.map_base_uri: Path to all maps and their Zoomify tilesets
  • config.wikipedia_miner_uri: Path to the Wikipedia Miner application root
  • config.dbpedia_sparql_uri: Path to the DBpedia SPARQL lookup service
  • config.geoname_query: Path to the GeoNames query for Wikipedia Bounding Box lookup
  • config.geoname_user: The GeoNames username
  • config.google_maps_api_key: Google Maps API key – currently not used
  • config.remote_timeout: How long should remote requests take before they time out?

Don't forget to reboot the Rails server. You can check if the URLs work by going to yourserver.example.com/status.