Skip to content

Commit

Permalink
Use development settings and port constant
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbundy committed Mar 18, 2015
1 parent f6fba54 commit 25e76be
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/readme_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
var Windshaft = require('../lib/windshaft');
var _ = require('underscore');

// Force 'test' environment
var ENV = 'test';
// Force 'development' environment
var ENV = 'development';
var PORT = 4000;

// set environment specific variables
global.settings = require('../config/settings');
Expand Down Expand Up @@ -37,8 +38,8 @@ var config = {
}
};

// Initialize tile server on port 4000
// Initialize tile server
var ws = new Windshaft.Server(config);
ws.listen(4000);
ws.listen(PORT);

console.log("map tiles are now being served out of: http://localhost:4000" + config.base_url_mapconfig);
console.log("map tiles are now being served out of: http://localhost:" + PORT + config.base_url_mapconfig);

0 comments on commit 25e76be

Please sign in to comment.