I want to make a Makefile. I am using shell.js
var METEOR_COMMAND = process.platform === 'win32' ? 'meteor.bat' : 'meteor';
var METEOR_PATH = path.join(__dirname, 'meteor');
target.bundle = function (deviceId, url) {
console.log('Build for OS: ' + process.platform + process.arch);
cd(METEOR_PATH);
var settings = JSON.stringify({ public: { deviceId: deviceId, url: url } });
var environ = "NODE_ENV=production METEOR_SETTINGS='" + settings + "'";
var options = "--once";
return exec(environ + " " + METEOR_COMMAND + " " + options);
}
When I console.log
my process.env.NODE_ENV
within my Meteor.startup
, it consistently says “development” despite passing “production” explicitly.
What’s the deal? Anyone experience this?