Deploy to heroku

I am trying to deploy to Heroku but get this error:

remote:     ** (File.Error) could not read file 
"/tmp/build_955..e8bf5/apps/koko/config/prod.secret.exs": no such file or directory

I’ve configured the secret key base using environment variables. There is the line

secret_key_base: "tU...K1",

in apps/koko_web/config/dev.exs, but that shouldn’t affect things.

What am I missing?

Check your config/prod.exs, is the line import_config "prod.secret.exs" (usually at the last line of the file) commented out or deleted? If not, it should be.

See the heroku deployment docs for more info.

1 Like