title: Sailsjs - Hook orm taking too long to load - Modulus
body: <p>I have made a nodejs application using <a href="http://sailsjs.org/" rel="nofollow noreferrer">sails.js</a>. It's working perfectly in my localhost. The problem appears in production when I try to publish it in the server(modulus). You can take a look the error below.</p>
  
  <pre><code>Error: The hook `pubsub` is taking too long to load.
  Make sure it is triggering its `initialize()` callback, or else set `sails.config.pubsub._hookTimeout to a higher value (currently 20000)
      at tooLong [as _onTimeout] (/mnt/data/1/ApiDevConf-master/node_modules/sails/lib/app/private/loadHooks.js:92:21)
      at Timer.listOnTimeout (timers.js:110:15) { [Error: The hook `pubsub` is taking too long to load.
  Make sure it is triggering its `initialize()` callback, or else set `sails.config.pubsub._hookTimeout to a higher value (currently 20000)] code: 'E_HOOK_TIMEOUT' }
  </code></pre>
  
  <p>I have tried to figure out how to solve the problem but nothing works. I was trying somethink like this <a href="https://stackoverflow.com/questions/28524926/the-hook-orm-taking-too-long-to-load">here</a>. </p>
  
  <p>Also I have properly set the <code>NODE_ENV = production</code></p>
  
  <p>Thanks for your time.</p>