I was following this tutorial:
https://blog.cloudboost.io/deploying-a-node-js-express-application-on-digital-ocean-part-2-573f0b8b8ea4
and when I get to the part about removing the the port number from the URL, the website still works but now none of my images will load. Does it have something to do with the fact that I have my React app redirecting from “/” to “/Home”?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @mikedq1225,

What is the exact error that you get in your web console?

What I would suggest instead is following the steps from this step by step tutorial here on how to set up your application for production with Nginx:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-18-04

Let me know how it goes.
Regards,
Bobby

by Brennen Bearnes
by Kathleen Juell
Node.js is an open-source JavaScript runtime environment for building server-side and networking applications. Node.js applications can be run at the command line but this guide focuses on running them as a service using PM2, so that they will automatically restart on reboot or failure, and can safely be used in a production environment.
Submit an Answer