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.

7 lines
228 B

12 years ago
12 years ago
12 years ago
  1. #!/usr/bin/env node
  2. var connect = require('connect');
  3. var app = connect()
  4. .use(connect.logger('dev'))
  5. .use(connect.static(process.cwd()))
  6. .use(connect.directory(process.cwd()))
  7. .listen(process.argv[2] || 8000);