You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
282 B

12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
  1. #!/usr/bin/env node
  2. var connect = require('connect');
  3. var port = process.argv[2] || 8000;
  4. connect()
  5. .use(connect.logger('dev'))
  6. .use(connect.static(process.cwd()))
  7. .use(connect.directory(process.cwd()))
  8. .listen(port);
  9. console.log("listening on port " + port);