sgentle/phantomjs-node — pull request #210 by andresgottlieb (2014-10-22 03:02:24+00:00)
Title: Added options "hostname" and "path" to phantom.create()

Now, additionally to "port", you can also pass "hostname" and "path" as options.

"hostname" = hostname where dnode is launched. Previous version uses hardcoded "localhost".
"path" = path where phantomjs binary is located. Previous version assumes phantomjs is in the PATH.

I needed to add this functionality because I'm working with Openshift, and in that PaaS you cannot just use localhost to launch a server. It's also complicated to add phantomjs to the PATH.

I assume this is true for many PaaS platforms and scenarios.