jurisv / nodejs.extdirect

Ext.Direct connector for node.js (npm module)
41 stars 16 forks source link

extdirect does not run with Passenger #19

Closed jgrocha closed 10 years ago

jgrocha commented 10 years ago

Hi,

If the application is started by some other process than node (Passenger, for example), the processRoute will return an invalid route.

var route = {
    processRoute : function(req, resp, config){
        var root = vPath.dirname(process.mainModule.filename),

The problem is process.mainModule.filename.

jurisv commented 10 years ago

Fixed by https://github.com/jurisv/nodejs.extdirect/pull/20