https://github.com/tilemill-project/tilemill
Raw File
Tip revision: 1672dad5cc2283b1c8efdc8adb9ab496267fba00 authored by csytsma on 05 November 2023, 18:10:49 UTC
Added Colors Plugin (#2762)
Tip revision: 1672dad
test.bones
command = commands['core'].extend();

command.description = 'test server process';

command.prototype.initialize = function(plugin, callback) {
    Bones.plugin.command = this;
    var remaining = 2;
    this.servers = {};
    this.servers['Core'] = new plugin.servers['Core'](plugin);
    this.servers['Tile'] = new plugin.servers['Tile'](plugin);
    _(this.servers).each(function(server) {
        server.start(function() {
            remaining--;
            console.warn('Started %s.', Bones.utils.colorize(server, 'green'));
            server.emit('start');
            if (!remaining) callback && callback();
        }.bind(this));
    }.bind(this));
};
back to top