How To Deploy Node.js Applications Using Systemd and Nginx
When deploying a web application to a Droplet, it might be tempting to simply use the same kind of setup as is used in development, i.e. starting the server by running “ruby app.rb” or “node server.js” in a terminal. This is simple and easy, while providing visible logs.This is dangerous: what happens if the server crashes and no one is around to restart it? This tutorial uses a simple Node.js application, but is applicable to most, if not all, others as well (be they Ruby, Python, etc.)