Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiokim committed Feb 8, 2012
1 parent 1ed28ba commit 212c36a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
@@ -0,0 +1,20 @@

#usage

./
+ static
- js
- img
- css
+ public
- index.html
+ routes
- about/index.html

```
$ locally --static ./static --public ./public -port 8080
```

http://localhost:8080/
http://localhost:8080/about/

13 changes: 13 additions & 0 deletions lib/locally.js
Expand Up @@ -15,6 +15,19 @@ program.on('--static', function() {
process.exit();
});

program
.command('init')
.description('locally setup webserver configuration')
.action(function() {
program.prompt('static directory :', function(dir) {
console.log('static -> %s', dir);
});

program.prompt('public directory :', function(dir) {
console.log('public -> %s', dir);
});
});


// locally.opt support
try {
Expand Down

0 comments on commit 212c36a

Please sign in to comment.