Running a Script via PM2 on a VPS Server

Let's now run our test site script via PM2. First, let's navigate to our project folder:

terminalcd /var/www/test.com

Now let's start our script:

/var/www/test.compm2 start app.js

After this, you can open the site in your browser and it will work even with the terminal closed.

Задание 1

Run the test site script via PM2.