Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Mix doesn't exist in releases. You can get config options like normal, but not `Mix.env/0`. You can compile your current env into a config option though, and use that at runtime.

Here's an example how to set up an Ecto migrator task with Mix releases: https://hexdocs.pm/phoenix/releases.html#ecto-migrations-and...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: