Skip to content

Commit

Permalink
Set default port to 3001 (scripts)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Romero Brox committed Jun 4, 2013
1 parent 238f4d9 commit 98dd067
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion utils/ack.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var program = require('commander'),
program
.version('0.0.1')
.option('-H, --host [hostname]', 'host, \'localhost\' by default', 'localhost')
.option('-P, --port [number]', 'port, 5001 by default', 5001, parseInt)
.option('-P, --port [number]', 'port, 5001 by default', 3001, parseInt)
.option('-Q, --queue [id]', 'queue', "Q1")
.option('-T, --trans [list]', 'list of transactions separated by comma', list)
.option('-X, --secure', 'use HTTPS', false)
Expand Down
2 changes: 1 addition & 1 deletion utils/createSecure.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var program = require('commander'),
program
.version('0.0.1')
.option('-H, --host [hostname]', 'host, \'localhost\' by default', 'localhost')
.option('-P, --port [number]', 'port, 5001 by default', 5002, parseInt)
.option('-P, --port [number]', 'port, 5001 by default', 3002, parseInt)
.option('-Q, --queue [id]', 'queue', "Q1")
.option('-U, --user [id:passwd]', 'username','popbox:itscool')
.parse(process.argv);
Expand Down
2 changes: 1 addition & 1 deletion utils/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var program = require('commander'),
program
.version('0.0.1')
.option('-H, --host [hostname]', 'host, \'localhost\' by default', 'localhost')
.option('-P, --port [number]', 'port, 5001 by default', 5001, parseInt)
.option('-P, --port [number]', 'port, 5001 by default', 3001, parseInt)
.option('-Q, --queues [list]', 'list of queues separated by comma', list, ["Q1"])
.option('-G, --group [id]', 'group to be created', ["G1"])
.option('-X, --secure', 'use HTTPS', false)
Expand Down
2 changes: 1 addition & 1 deletion utils/pop.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var program = require('commander'),
program
.version('0.0.1')
.option('-H, --host [hostname]', 'host, \'localhost\' by default', 'localhost')
.option('-P, --port [number]', 'port, 5001 by default', 5001, parseInt)
.option('-P, --port [number]', 'port, 5001 by default', 3001, parseInt)
.option('-Q, --queue [id]', 'queue', "Q1")
.option('-R, --reliable', 'reliable extraction', false)
.option('-S, --subscribe', 'subscribe', false)
Expand Down
2 changes: 1 addition & 1 deletion utils/provision.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var program = require('commander'),
program
.version('0.0.1')
.option('-H, --host [hostname]', 'host, \'localhost\' by default', 'localhost')
.option('-P, --port [number]', 'port, 5001 by default', 5001, parseInt)
.option('-P, --port [number]', 'port, 5001 by default', 3001, parseInt)
.option('-M, --message [text]', 'message','¡hola!\n')
.option('-Q, --queues [list]', 'list of queues separated by comma', list, ["Q1"])
.option('-G, --groups [list]', 'list of groups separated by comma',list)
Expand Down
8 changes: 4 additions & 4 deletions utils/trans_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ var program = require('commander'),
program
.version('0.0.1')
.option('-H, --host [hostname]', 'host, \'localhost\' by default', 'localhost')
.option('-P, --port [number]', 'port, 5001 by default', 5001, parseInt)
.option('-P, --port [number]', 'port, 5001 by default', 3001, parseInt)
.option('-T, --trans [id]', 'transaction')
.option('-X, --secure', 'use HTTPS', false)
.parse(process.argv);
url = util.format('%s://%s:%d/trans/%s', program.secure ? 'https' : 'http', program.host, program.port, program.trans);
req_aux(url, function () {
req_aux(url + '/state', function(){});
reqAux(url, function () {
reqAux(url + '/state', function(){});
});
function req_aux(url, done) {
function reqAux(url, done) {
console.log('url\n', url);
request.get({url: url, headers: {'Accept': 'application/json'}}, function (err, res, body) {
if (err) {
Expand Down

0 comments on commit 98dd067

Please sign in to comment.