chore: Additional indexes and fixes (#6675)

- Fix breakage related to the look-up job in Heroku deploys 
- Add additional db indexes for performance optimisations
This commit is contained in:
Sojan Jose
2023-03-15 19:52:02 +05:30
committed by GitHub
parent 7331154f04
commit de8c26dce8
5 changed files with 18 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ namespace :ip_lookup do
task setup: :environment do
next if File.exist?(GeocoderConfiguration::LOOK_UP_DB)
ip_lookup_api_key = ENV.fetch('IP_LOOKUP_API_KEY')
ip_lookup_api_key = ENV.fetch('IP_LOOKUP_API_KEY', nil)
next if ip_lookup_api_key.blank?
puts '[rake ip_lookup:setup] Fetch GeoLite2-City database'