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