Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mezis
Created March 20, 2018 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mezis/1a4d0dca58c903ffc7884378a76bb9f3 to your computer and use it in GitHub Desktop.
Save mezis/1a4d0dca58c903ffc7884378a76bb9f3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
puts "Press RETURN when the geocoder cache has been unpacked in tmp/cache/geocoder"
gets
Geocoder.config[:cache] = ActiveSupport::Cache::FileStore.new('tmp/cache/geocoder')
puts "Paste the correct Google API key:"
Geocoder.config[:api_key] = gets.strip
BackfillUserCityAreaService.new.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment