Upload the file on the aws ec2 instance using GitHub so after that I use pm2 to start the server file, but it shows an error that the server is running on an Undefined port and a mongodb error,
but when I run the same file on my system it works fine
It is like that the path dotenv.config({path : “backend/config/config.env”}) is not recogninzing by instance?
Is there any different method for path to define, or any other method to host my MERN APP on aws hosting service
kalgi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.