node/express ERR_CONNECTION_REFUSED on static files
Hi, new to digitalocean and deploying and all that stuff. But I get a very strange error when deploying my express application.
My droplet is a ubuntu with nodejs and the application is a standard express application generated through:
$ express myapp …
so there is nothing fancy about the code but I get an error when trying to load in css and other static files using:
and then i get ERRCONNECTIONREFUSED in the console for my files.
the strange part is that it´s all working on my local node server.
Does anyone have any suggestions or fix for this problem?
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.×