Browse Source

port cmd line arg

master
Lloyd Brookes 12 years ago
parent
commit
9d118e4798
  1. 2
      server.js

2
server.js

@ -5,4 +5,4 @@ var app = connect()
.use(connect.logger('dev')) .use(connect.logger('dev'))
.use(connect.static(process.cwd())) .use(connect.static(process.cwd()))
.use(connect.directory(process.cwd())) .use(connect.directory(process.cwd()))
.listen(8000);
.listen(process.argv[2] || 8000);
Loading…
Cancel
Save