prerender/prerender — pull request #80 by ecaron (2014-04-04 21:45:15+00:00)
Title: Wire up Phantom Cluster having customized ports

phantomBasePort control came in with abd714517af15c1432b674e12debe32ab98f9bad, but didn't get wired up throughout.

This PR completes that functionality, sticking with phantomjs' default port of 12300 but allowing overrides via option phantomBasePort in server.js, or env variable of PHANTOM_CLUSTER_BASE_PORT.

This functionality, combined with changing PORT, allows multiple prerender servers to run on the same machine (useful for load balancing)