BUILD_TARGET env variable on Windows
winstef opened this issue · 3 comments
Hey,
Thanks for this very interesting build process using Gulp.
I'm having an issue with the BUILD_TARGET variable, when I try to use it in the command line, it just says: ''BUILD_TARGET' is not recognized as an internal or external command'
I'm on win7.
thanks.
@winstef hey - Windows works a little differently.
BUILD_TARGET=development is setting an environment variable.
I'm not 100% sure - it's been some time since I've used Windows - but this appears to be the process for setting an environment variable in Windows: http://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/
Can you try setting build target in that manner and then running gulp directly without the BUILD_TARGET=development prefix?
You might also have luck by trying Cygwin instead: https://www.cygwin.com
Yes indeed,
I found an easy workaround, by first setting the environment variable :
set BUILD_TARGET=development
press Enter. To make sure the variable exists, you can type %BUILD_TARGET%
Then I'm able to run all the gulp commands without any errors.
thank you for your help.
Great, glad you figured it out!