Files
chatwoot/lib/tasks/ip_lookup.rake
Mazen Khalil 601a0f8a76 fix: ip-lookup database lazy loading for all environments (#8052)
The current task for loading `GeoLite2-City.mmdb` doesn't work for all build types. This PR addresses this and move the task to initializer to ensure consistency across environments. 

---------

Co-authored-by: Sojan Jose <sojan@pepalo.com>
Co-authored-by: Sojan Jose <sojan.official@gmail.com>
2024-10-22 23:18:30 -07:00

8 lines
131 B
Ruby

require 'rubygems/package'
namespace :ip_lookup do
task setup: :environment do
Geocoder::SetupService.new.perform
end
end