Skip to content

Commit

Permalink
add -p for listen port
Browse files Browse the repository at this point in the history
  • Loading branch information
matao committed Mar 21, 2012
1 parent 457cec9 commit 43c7fa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
@@ -1,4 +1,5 @@
var express = require('express');
var argv = require('optimist').argv;
var shortly = require('./lib/shortly');
var store = require('./lib/store');

Expand Down Expand Up @@ -31,4 +32,4 @@ app.get('/v1/shorten', function(req, res){
res.send( JSON.stringify( ret, null, ' ' ) );
});

app.listen(3001);
app.listen( argv.p || 80 );

0 comments on commit 43c7fa2

Please sign in to comment.