Zoltar sees all! Zoltar launches your node-powered sites on demand when you access them by their actual names. No more "node app", no more "http://localhost:3000". Also provides a web console to view the output and start, stop and restart apps.
Some of the reasons the monitor doesn't already do this:
socket.io violates the HTTP 1.1 spec by refusing to cope if the URL given to it is absolute
node-http-proxy violates the HTTP 1.1 spec by passing absolute URLs to socket.io (yes the spec says servers should cope but it also says clients shouldn't do it)
socket.io is semi-abandonware
node-http-proxy can supposedly proxy websockets but there is no documentation on how to do it on a per-connection basis
I could avoid all this by not proxying the monitor but instead requiring a single /etc/hosts file entry, but I'm not sure if I want to
In the meantime we have a reasonably simple hack that seems to be working okay but obviously it's not as fast or as clean.
Some of the reasons the monitor doesn't already do this:
In the meantime we have a reasonably simple hack that seems to be working okay but obviously it's not as fast or as clean.