0
MIX_ENV=test mix compile

...is not working on Windows cmd. It shows:

'MIX_ENV' is not recognized as an internal or external command, operable program or batch file

How to solve this problem?

Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56

2 Answers2

1

Like @Dogbert said, in Windows you have to use the set command:

set MIX_ENV=test && mix compile
Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56
ema
  • 5,668
  • 1
  • 25
  • 31
0

Try using other terminals in Windows.

Using commands like MIX_ENV=dev iex -S mix phx.server within Git Bash works fine on Windows machines.

Sachin Chillal
  • 393
  • 4
  • 6