Anyone have luck getting less-middleware working in a cloud hosted 
environment? (I'm getting the same problem with Azure and AppHarbor). It 
seems to find the .less files but the imports are failing. My less files 
are in "/public/styles". I've tried using "__dirname + '/public/styles'" 
and it never finds my less files either. Everything works great under both 
straight commandline (via WebStorm) and under IISNode (using WebMatrix) on 
Windows. Pulling my hair out.

Here is my configuration:

...
// Configuration
app.configure(function() {
  app.set('views', __dirname + '/libs/views');
  app.set('view engine', 'jade');
*  app.use(require('less-middleware')(*
*    {*
*      src: __dirname + '/public',*
*      compress: false,*
*      debug: true,*
*      force: true*
*    }));*
  app.use(express.static(publicFolder));
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);
});
...

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to