Hi all,
I’m using a Postgres extension for the first time by using postGIS and the great Geo library (https://github.com/bryanjos/geo) by Bryan Joseph and while local development was fine, I’m getting the following message when trying to access a deployed Heroku instance:
[error] Postgrex.Protocol (#PID<0.314.0>) disconnected: ** (RuntimeError) type `geography` can not be handled by the types module Ecto.Adapters.Postgres.TypeModule
My prod.exs file looks like:
config :example, Example.Repo,
adapter: Ecto.Adapters.Postgres,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "20"),
ssl: true,
extensions: [{Geo.PostGIS.Extension, library: Geo}]
I’ve ensured that the PostGIS extension has been created on the Heroku database and tried adding the ‘extensions’ property to the config above, but still haven’t had any luck. Any help is very much appreciated!