I'm using sails on a project hosted on Heroku. I have a web process running a sails web server and a worker process using the same Models as the ones used by the web server.
In order to make it possible I have different way to start each process with the same code :
- the app.js standard way
- a worker.js file that starts the same sails app with only the orm and services hook activated.
However I have added some user hooks in a api/hooks folder that I don't want the worker to start. Is there an easy way to disable those hooks? I tried to lift sails with a { "userhookname" : false } passed in config but it does not seem to work.
Thank you