I use sails in a project hosted on Heroku. I have a web process with a sails web server and a workflow using the same models as those used by the web server.
To make it possible, I have another way to start each process using the same code:
- standard way app.js
- the worker.js file, which runs the same sail application, only the orm application and the service are activated.
However, I added some user hooks to the api / hooks folder, which I do not want the worker to start. Is there an easy way to disable these hooks? I tried to sail up with {"userhookname": false} passed to config, but it doesn't seem to work.
thank
adc06 source
share