By Horse
Hello, I’m at my wits end so here we go.
I created a working MERN stack app on DO a couple months ago (APP1), it works fantastically. I decided to use that app as a code base for another MERN app (APP2). Nearly nothing has changed from APP1 to APP2. The only changes have been to strings for the sake of renaming. APP2 works wonderfully in development environments, but won’t even present me with a “Cannot GET” message when I deploy it to a droplet. The droplet is reachable via ping, so I know it’s active. I get no errors during deployment. I don’t have the client setup to use a proxy. I do not have any dependency differences between APP1 and APP2. The only thing I have to go on is the error message in my browsers: “This site can’t be reached. xxx.xxx.xxx.xxx Refused to connect”.
I’m happy to provide any additional information or run suggested tests. Thank you for your time.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Turns out it was a user permissions issue. Just had to run pm2 as “sudo pm2 start server.js”
Thanks to all who were pondering.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.