App doesn't terminate
I have a problem, my app works but never terminate.
module.exports = getMovie: (url, type) -> orm.connect("mysql://root:root@localhost/name", (err, db) -> # my app body, many queries
How to terminate my app on end of my app body ?
Like any node app, when you have pending I/O or timers, your app won't terminate. In your case it's probably because you didn't close the connection. Try calling db.close when you finish.
running close() seems to have no effect
@fanum: Exactly...
Are you sure you don't have anything pending? Did you add a callback do db.close ? Put some callback printing something so you know everything is done (no queued query or something..).