How can I run seeds file to populate the db from a couple of large CSV files sitting in Gigalixir at data?

You can try logging in via ssh and running at the shell.

You can find your SECRET_KEY_BASE in the /kube-env-vars/SECRET_KEY_BASE file.

You can export it with this:

export SECRET_KEY_BASE=$(cat /kube-env-vars/SECRET_KEY_BASE)

You may also need export DATABASE_URL, which you can pull from gigalixir config and APP_NAME to get things working properly.

Note: for larger files, you may need to run the migration from your local system. Set the DATABASE_URL and run the migration locally. Something like this:

MIX_ENV=prod DATABASE_URL=ecto://… mix ecto.migrate FILE1 FILE2

If you want to avoid any prod specifics and only care about the database connection, you can probably just drop the MIX_ENV=prod. Either way, just be sure you pull the DATABASE_URL from the environment variable in your config.

You can get your database url from “gigalixir pg.”