I have just deployed my Express app to a production server and I'm no longer being served my static assets.
My assets are in
/public and I call the static middleware like so:
// config.root => /var/www app.use(express.static(config.root + '/public'));
When I spin up my site, the stylesheets aren't coming through and I'm seeing:
GET http://--- redacted ---/scripts/main.js net::ERR_CONNECTION_REFUSED
If I open up the stylesheet URL I can see it no problem.
What am I missing here?