UNPKG

casino-server

Version:

An multi-rule scalable online poker game server powered by redis, node.js and socket.io

23 lines (15 loc) 528 B
#!/usr/bin/env node 'use strict'; var Server = require('../lib/login_server'), Casino = require('../lib/game_server'), conf = require('../conf/casino.conf.js'); var argv = require('minimist')(process.argv.slice(2)); if(argv.p) conf.server.port = argv.p; if(argv.h) conf.server.host = argv.h; if(argv.r) { var words = argv.r.split(':'); if(words[0]) conf.redis.host = words[0]; if(words[1]) conf.redis.port = parseInt(words[1]); } var server = new Server().startup( conf ); var casino = new Casino().startup( conf );