How to waste time chasing ghosts
Wasted a few days chasing ghosts During my development workflow, I spend time running our server process after making code changes. Often, a problem will happen with some JavaScript caching or umask-induced permissions problem . The result is that you're making code changes and not seeing any change. But caching and permissions problems are not the only way this can happen. It can also happen by having to restart the server process when the control script does not properly handle things, resulting in multiple server processes. Then the code you just wrote does not appear to work because you are not talking to the server process you think you're talking to. This can happen because: Multiple server processes can share the same port Handling of starting, stopping, and cleaning up is not done correctly Process is more complex due to the insistance of using "shared user accounts" Two separate things were happening. First, multiple processes per “one server” is expected he...