I'm trying to deploy my Angular + NestJS application on my Ubuntu server with PM2 and NGINX. I have build my server, that listens to port 3003. Here is the content of the dist folder :
I then used PM2 as follows:
pm2 start ./main.js --name my-backend
If I try to go on my server IP address, on port 3003, e.g. http://99.99.99.99:3003 nothing happen, I get a page that says we can't access the website, with error code ERR_CONNECTION_REFUSED
Do you know what I did wrong ?
EDIT Well I did something wrong because I have the following error : TextEncoder is not defined