Hi all,
I am trying to load seeds, I got this error:
iex(msw@df5d68c5)1> Msw.Seeds.run()
** (Postgrex.Error) ERROR 58P01 (undefined_file) could not open file "/app/lib/msw-0.1.0/priv/data/seasons.csv" for reading: No such file or directory
hint: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.
(ecto_sql 3.9.0) lib/ecto/adapters/sql.ex:905: Ecto.Adapters.SQL.raise_sql_call_error/1
(elixir 1.13.4) lib/enum.ex:937: Enum."-each/2-lists^foreach/1-0-"/2
that file is there
# ls /app/lib/msw-0.1.0/priv/data/seasons.csv
/app/lib/msw-0.1.0/priv/data/seasons.csv
but I got a strange result from the elixir console
iex(msw@df5d68c5)5> File.ls("/app/lib/msw-0.1.0/priv/data")
{:ok, ["episodes.csv", "seasons.csv", "killers.csv"]}
iex(msw@df5d68c5)6> File.ls("/app/lib/msw-0.1.0/priv/data/seasons.csv")
{:error, :enotdir}
Any idea what is going on?
Surely I am missing something.
Thank you
Carlo