Navigation Menu

Skip to content

Commit

Permalink
Add heroku's example
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Aug 8, 2012
1 parent f188ace commit 80839db
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/server.js
Expand Up @@ -9,9 +9,12 @@ var searchNode = env.NOREMA_SEARCH_NODE;
if (!searchNode) {
console.error("Environment variable 'NOREMA_SEARCH_NODE' is not defined.");
console.error("Example: ");
console.error(" env NOREMA_SEARCH_NODE=search-norema-00000000000000000000000000.127.0.0.1.xip.io:7575 npm start");
console.error("or, for nodejitsu deployment,");
console.error(" jitsu env set NOREMA_SEARCH_NODE search-norema-00000000000000000000000000.127.0.0.1.xip.io:7575");
console.error("(for development)");
console.error(" env NOREMA_SEARCH_NODE=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("(for nodejitsu)");
console.error(" jitsu env set NOREMA_SEARCH_NODE search-norema-00000000000000000000000000.127.0.0.1.xip.io:7575");
process.exit(1);
}
// configuration
Expand Down

0 comments on commit 80839db

Please sign in to comment.