Production environment
If you have a bare metal server or want to work with virtual servers, such as DigitalOcean or Rackspace, you can create your own production environment. In this section, you will see how to make it possible.
It doesn't matter what the case is as the way you configure a production environment on these kind of servers are the same. However, keep in mind that the production environment that you will see here is for simple web applications.
If you have an application with high traffic, you can start from here; however, the server architecture should have a sophisticated organization. The details on how to scale your deployments are out of the scope of this book.
For the server, I will use the Ubuntu server as it is the easiest and the most popular choice to deploy application. If you are familiar with other distributions such as CentOS, you can use it; however, the instructions are not the same.
The following diagram shows you a typical configuration for a Node server in the...