Skip to content

Commit

Permalink
Merge pull request #303 from christianbundy/fix-example
Browse files Browse the repository at this point in the history
Use development settings and port constant
  • Loading branch information
Raul Ochoa committed Apr 30, 2015
2 parents 6b69d7f + 25e76be commit 7daeed7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/readme_server.js
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 @@ -36,8 +37,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 7daeed7

Please sign in to comment.