lykmapipo / sails-hook-subscriber

Kue based job subscriber(consumer and workers pool) for sails
28 stars 12 forks source link

Is there any way to access the Kue UI? #4

Closed ronenteva closed 8 years ago

lykmapipo commented 9 years ago

@ronenteva

No.current sails-hook-subscriber have not attach kue ui into sails.

But it seems to be good features if it will be available.Am open for discussion

slavaparfenov commented 8 years ago

@ronenteva

Add these lines into your config/http.js

  customMiddleware: function (app) {
    var kue = require('kue')
    var ui = require('kue-ui')

    ui.setup({
      apiURL: '/api',
      baseURL: '/kue',
      updateInterval: 5000
    })

    app.use('/api', kue.app)
    app.use('/kue', ui.app)
  },

Kue UI will be accessable at /kue URL.

lykmapipo commented 8 years ago

@slavaparfenov

Thanks for the fix updates.