Closed nrempel closed 8 years ago
I want to use sails-hook-subscriber with sails in a worker process. The worker process needs access to orm and pubsub hooks but cannot bind to a port and accept web requests.
orm
pubsub
Do you have any recommendations on how to go about doing this?
If anyone is curious, I accomplished this with the help from this blog post: http://blog.thesparktree.com/post/104779353989/reusing-sailsjs-waterline-models-in-background
I want to use sails-hook-subscriber with sails in a worker process. The worker process needs access to
orm
andpubsub
hooks but cannot bind to a port and accept web requests.Do you have any recommendations on how to go about doing this?