PM2 will daemonize your application and run it on a cluster of servers.
Get started by installing all needed services.
What you'll need
PM2 version 5.2.0 or above:
Install globally with npm:
npm i -g pm2
Daemonize the running application with PM2:
pm2 start dist/index.js --name teledrive
View the logs with PM2:
pm2 log teledrive
Restart the service with:
pm2 restart teledrive
Next, you need to reverse proxy the application to your domain with Nginx.