1602/express-on-railway — Issue #65: Railway server not responding to requests
Author: fokenrute
Created: 2011-11-06 01:33:39+00:00
State: open

I'm using node v0.4.12 and railway develop branch.
Here is what I did:

$ railway init test --coffee --tpl jade --db mongoose
$ cd test
$ railway g crud product name price:number location image date:Date
$ railway s

On when I do a curl http://localhost:3000/, curl never returns.

Moreover, when I run the railway console and type

User.find()

I get this
railway> User.find();
railway>
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: undefined is not a function
at CALL_NON_FUNCTION (native)
at Function. (/usr/lib/node_modules/railway/node_modules/jugglingdb/lib/abstract-class.js:143:9)
at native
at /usr/lib/node_modules/railway/node_modules/jugglingdb/lib/adapters/mongoose.js:100:9
at MongooseAdapter. (/usr/lib/node_modules/railway/node_modules/jugglingdb/lib/adapters/mongoose.js:68:13)
at Promise. (native)
at Promise. (/usr/lib/node_modules/railway/node_modules/jugglingdb/node_modules/mongoose/lib/promise.js:120:8)
at Promise. (events.js:64:17)
at Promise.emit (/usr/lib/node_modules/railway/node_modules/jugglingdb/node_modules/mongoose/lib/promise.js:59:38)
at Promise.complete (/usr/lib/node_modules/railway/node_modules/jugglingdb/node_modules/mongoose/lib/promise.js:70:20)

Voila. Hope it's precise enough to be helpful.