Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

upgraded for compatibility with express newer version #1223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions examples/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ var kue = require( '../' )
// create our job queue

var jobs = kue.createQueue();
var appPortDefault = 3000;
var mPort = process.env.PORT || appPortDefault;

// start redis with $ redis-server

Expand Down Expand Up @@ -47,8 +49,8 @@ function convertFrame( i, fn ) {
}

// start the UI
var app = express.createServer();
app.use( express.basicAuth( 'foo', 'bar' ) );
var app = express();
app.use( kue.app );
app.listen( 3000 );
console.log( 'UI started on port 3000' );
app.listen(mPort,function(){
console.log(`UI started on port ${mPort}`);
});