Next, we are going to learn about simple techniques that can ease our work when monitoring the Express web applications. Their purpose is to make the application more visible and provide output-relevant details regarding the status of the application.
Probably the most popular filename for Express applications is server.js
. Another thing that is really likely to happen is that for most (or perhaps all) of our applications, we will use this name as the entry point (main file) of our application.
Let's suppose that we have three different applications running on the same instance: a blog, a notes application, and a file-sharing application. Since their entry point is server.js
, we will see the same process title everywhere:
36864 node server.js 36865 node server.js 36866 node server.js
Alright then, so how can we differentiate between them? Well, sure we can type in some command to find out the current working directory of a PID, but that...