|
@ -1,8 +1,11 @@ |
|
|
#!/usr/bin/env node
|
|
|
#!/usr/bin/env node
|
|
|
var connect = require('connect'); |
|
|
var connect = require('connect'); |
|
|
|
|
|
|
|
|
var app = connect() |
|
|
|
|
|
|
|
|
var port = process.argv[2] || 8000; |
|
|
|
|
|
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(process.argv[2] || 8000); |
|
|
|
|
|
|
|
|
.listen(); |
|
|
|
|
|
|
|
|
|
|
|
console.log("listening on port " + port); |