Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config.env() is deprecated #132

Open
ballPointPenguin opened this issue Feb 10, 2022 · 1 comment
Open

Config.env() is deprecated #132

ballPointPenguin opened this issue Feb 10, 2022 · 1 comment

Comments

@ballPointPenguin
Copy link

I'm using elixir 1.13.2

I needed this to make config :mix_test_watch ... work properly:

if config_env() == :test do
  config :mix_test_watch,
    clear: true
end

and no use Mix.Config

Maybe make a note in the README

PS It was not working for me with only :dev, I needed to specify :test. I'm not sure if that's a version-related change as well.

@tobyhinloopen
Copy link

tobyhinloopen commented May 24, 2022

I'd put it in config/dev.exs. (yes, not in config/test.exs), without the IF-statement.

I think dev is used because mix test.watch is executed in development environment by default.

config :mix_test_watch, extra_extensions: [".heex"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants