I'm really confused about environment variables right now.
- If I run
PORT=1234 node .it ignores PORT and uses the default. - If I then run vim, write one of the js files (with no changes, but I have to write it) and close it and run
PORT=1234 node .again, it works and runs on1234. - If I then run
PORT=4321 node .it ignores the new PORT and continues to run on1234. - If I repeat the process of opening vim, writing a file, and closing vim and running node again, it uses
4321. - I'm seeing this on two different servers and it's affecting other things on
process.env, likeNODE_ENVand the app's version number which I put there when it first starts - I DON'T see this behavior when I just run
PORT=xxxx nodeand then interactively ask it whatprocess.env.PORTis
later... omg, babel was caching the env variables in /tmp/.babel.json and checking out new code wasn't resetting it
Babel's driving me crazy right now. 6 has been a huge pain to set up (I haven't gotten it working with this pr