1602/express-on-railway — Issue #70: Server not talking to mysql
Author: arvindcr
Created: 2011-11-27 07:15:31+00:00
State: open

Created blog app using raliway init blog

generated post using generator as described in website

Added require('jugglingdb'); to npmfile.js
Added , "jugglingdb": ">= 0.0.7" to package.json

database.json - added

{ "development":
{ "driver": "jugglingdb"
, "host": "localhost"
, "database": "blog-dev"
, "username": "root"
, "password": "password"
}
...

blog/db/schema.js has:

define('User', function () {
property('email', String, { index: true });
property('password', String);
property('activated', Boolean, {default: false});
});

var Post = describe('Post', function () {
property('title', String);
property('content', String);
});

Railway s errors out with:

railway s 3000
The "sys" module is now called "util". It should have a similar interface.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #