Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save binarytemple/47329c47226ad64978a6 to your computer and use it in GitHub Desktop.
Save binarytemple/47329c47226ad64978a6 to your computer and use it in GitHub Desktop.
elixir notes - setting the environment

Q: dumb question - mix start console with test environment - trying to get HTTPoison examples working in the console but exjsx is marked as a :test only dependency.

Obviously I can edit the file, but I’d like to know how to control this with CLI flags or whatever.

A: MIX_ENV=test iex -S mix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment