Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"websocket" : {
"port" : 9999
},
"logging" : true,
"const" : {
"env" : "development",
"ver" : "9999"
}
}
var WebSocket = require('websocket').server,
Http = require('http'),
Config = require('config')
;
console.log("========= Start ===========");
console.log("NODE_ENV="+process.env.NODE_ENV);
console.log("NODE_PATH="+process.env.NODE_PATH);
console.log("port="+Config.websocket.port);
console.log("logging="+Config.logging);
console.log("env="+Config.const.env);
console.log("ver="+Config.const.ver);
console.log("=================================");
set NODE_PATH="C:\node\node_modules"
set NODE_ENV="development"
cd C:\node
set NODE_CMD=node
set SERVER_HOST="localhost"
SET CONFIG=C:\node\config\development.json
node example.js --NODE_ENV=%NODE_ENV% --NODE_PATH=%NODE_PATH% --SERVER_HOST=%SERVER_HOST%
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.