Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 725 Bytes

File metadata and controls

15 lines (8 loc) · 725 Bytes

Node.js server

Author: Fran Status: Incomplete — only PM2 user setup, needs server.js examples and deployment workflow

This server is useful to execute backend commands in the computer hosting a website. We will generate a server.js file that node will run. We will keep the server running in the background by using the process manager PM2.

Create a user that will run PM2

It is generally recommended to run PM2 as a regular user rather than as the root user. This is because running processes as the root user can pose a security risk and may cause issues with file permissions and other system resources.

sudo adduser pm2user