From fb14c434c1f5755785ced273cc44b6cd74340f9e Mon Sep 17 00:00:00 2001 From: Brock Whitten Date: Tue, 5 Mar 2013 10:20:50 -0800 Subject: [PATCH] changes host mode to dirmode --- README.md | 2 +- bin/harp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7897d71a..61e7a81c 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ Harp can be used as a library or as a command line utility. -s, --server [port] start a server for harp app (dynamically generates assets) -c, --compile [output-dir] compiles static assets. (relative to project-path) - -d, --dir-mode [port] host a directory of harp apps (available at http://harp.nu) + -d, --dirmode [port] host a directory of harp apps (available at http://harp.nu) Start the server in root of your application by running... diff --git a/bin/harp b/bin/harp index af85a8eb..7c43b7ec 100755 --- a/bin/harp +++ b/bin/harp @@ -10,7 +10,7 @@ program .usage('[project-path] [options]') .option('-s, --server [port]', 'start a server for harp app (dynamically generates assets)') .option('-c, --compile [output-path]', 'compiles static assets. (relative to project-path)') - .option('-h, --host [port]', 'hosts a folder of harp apps.') + .option('-d, --dirmode [port]', 'hosts a directory of harp apps.') .parse(process.argv) if(program.args.length > 0){ @@ -27,11 +27,11 @@ if(program.server){ harp.server(projectPath, { port: port }, function(){ console.log("harp is listening on port", port) }) -}else if(program.host){ +}else if(program.dirmode){ var appsPath = projectPath - var port = program.host === true + var port = program.dirmode === true ? 9966 - : program.host + : program.dirmode harp.server(appsPath, { port: port, hostMode: true }, function(){ console.log("harp is hosting apps on port", port) })