Tuesday, 15 May 2012

node.js - Heroku Node App Resources Not Loading -


I have an express node app that is running fine locally, but when I / public and / bower_components are not found

Enter the image details here </ P> <p> There is one such problem, but the solution did not work for me </ P> <p> Here is the relevant part of my app.js: </ p> <pre> <code> App.hese (express.state (path.joint (__derename, 'public')); App.use ('/ bower_components', express.static (__DERNAM + '/ bower_components')); </ Code> </ pre> <p> This is my package. Jason File: </ p> <pre> <code> {

In the browser console, I can confirm that all the files are present

This problem was solved by this post

Js

  app.it (express.stitick (path.join (__dirname, 'public'))); App.use ('/ bower_components', express.static (__DERNAM + '/ bower_components'));  

No comments:

Post a Comment