Navigation Menu

Skip to content

Commit

Permalink
NOREMA_SEARCH_NODE -> SEARCH_ENDPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Aug 8, 2012
1 parent 80839db commit 3039734
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/server.js
Expand Up @@ -4,17 +4,17 @@ var app = express();
var env = process.env;
var port = env.PORT ? parseInt(env.PORT, 10) : 3000;
var server = http.createServer(app);
var searchNode = env.NOREMA_SEARCH_NODE;
var searchNode = env.SEARCH_ENDPOINT;

if (!searchNode) {
console.error("Environment variable 'NOREMA_SEARCH_NODE' is not defined.");
console.error("Environment variable 'SEARCH_ENDPOINT' is not defined.");
console.error("Example: ");
console.error("(for development)");
console.error(" env NOREMA_SEARCH_NODE=search-norema-00000000000000000000000000.127.0.0.1.xip.io:7575 npm start");
console.error(" env SEARCH_ENDPOINT=search-norema-00000000000000000000000000.127.0.0.1.xip.io:7575 npm start");
console.error("(for heroku)");
console.error(" heroku config:add NOREMA_SEARCH_NODE=search-norema-00000000000000000000000000.127.0.0.1.xip.io:7575");
console.error(" heroku config:add SEARCH_ENDPOINT=search-norema-00000000000000000000000000.127.0.0.1.xip.io:7575");
console.error("(for nodejitsu)");
console.error(" jitsu env set NOREMA_SEARCH_NODE search-norema-00000000000000000000000000.127.0.0.1.xip.io:7575");
console.error(" jitsu env set SEARCH_ENDPOINT search-norema-00000000000000000000000000.127.0.0.1.xip.io:7575");
process.exit(1);
}
// configuration
Expand Down

0 comments on commit 3039734

Please sign in to comment.