Skip to content

Commit

Permalink
Fix starting of tile server on separate port.
Browse files Browse the repository at this point in the history
  • Loading branch information
Young Hahn committed May 19, 2011
1 parent 5757186 commit 305670d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion servers/Tile.bones
Expand Up @@ -3,12 +3,16 @@
var tilelive = new (require('tilelive').Server)(require('mbtiles'));

server = Bones.Server.extend({
// Necessary to actually instantiate tile server.
port:3001,

initialize: function(app) {
if (app.config.tilePort !== app.config.uiPort) {
this.port = app.config.tilePort;
this.enable('jsonp callback');
this.use(new servers['Syslog'](app));
this.use(new servers['Host'](app));
} else {
this.port = null;
}

var load = this.load.bind(this);
Expand Down

0 comments on commit 305670d

Please sign in to comment.