Created
February 11, 2014 04:39
-
-
Save masa795/8929347 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"websocket" : { | |
"port" : 9999 | |
}, | |
"logging" : true, | |
"const" : { | |
"env" : "development", | |
"ver" : "9999" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("================================="); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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