-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added kue-dashboard script for conveniently running the dashboard
as a standalone application without creating a new script.
- Loading branch information
mikob
committed
May 12, 2015
1 parent
dd22d06
commit 7359de1
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env node | ||
var kue = require('kue'); | ||
var argv = require('yargs') | ||
.usage('Usage: $0 [options]') | ||
.example('$0 -p 3050 -r redis://10.0.0.4:6379') | ||
.describe('r', 'Redis url') | ||
.describe('p', 'Dashboard port') | ||
.default('p', 3000) | ||
.default('r', 'redis://127.0.0.1:6379') | ||
.help('h') | ||
.alias('h', 'help') | ||
.argv | ||
; | ||
|
||
kue.createQueue({ | ||
redis: argv.r | ||
}); | ||
|
||
|
||
kue.app.listen(argv.p); | ||
console.log("Running on 127.0.0.1:" + argv.p); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters