When I run grunt from the command line, it works fine, but if I create a Sublime Text 2 build it "seems" to run fine except that anywhere process.env.SOME_VARIABLE is used it comes back as undefined.
Basically, from ST2 the following:
dest = process.env.CATALINA_HOME + "/webapps/MyApp/"
returns
"undefined/webapps/MyApp"
All of my files get copied to a new "undefined" directory in the project path rather than the Tomcat directory where it's supposed to be deployed to.
Is there any way to get Sublime Text 2 to respect/recognize node's process.env variables?