Following Heroku's encouragement to a worker dynos I created a worker.js file in my Sails project. However, this file is executed independently with a node worker.js
but i'd like to reuse the config I set up for my sails app. Specifically the sails.log
and sails' models.
How do I give my independently executed worker.js
file access to the sails
object.