From e12c7a1a443167afb1d5d4f05ed99736dec021a1 Mon Sep 17 00:00:00 2001 From: Kevin Turner Date: Thu, 28 Jan 2010 23:29:04 -0800 Subject: [PATCH] add jslint_port variable and set to 3003. --- app.js | 4 +++- jslint.curl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index e7d5697..83bebe0 100644 --- a/app.js +++ b/app.js @@ -29,6 +29,8 @@ configure(function () { enable('show exceptions'); }); +var jslint_port = 3003; + /* copied from jslint's rhino.js */ var jslint_options = { bitwise: true, @@ -129,4 +131,4 @@ post('/example/ok', function () { }); -run(); +run(jslint_port); diff --git a/jslint.curl b/jslint.curl index 0860955..1bcd85c 100755 --- a/jslint.curl +++ b/jslint.curl @@ -1,5 +1,5 @@ #!/bin/bash # A faster way to jslint; curl's start-up cost is much lower than rhino's. -JSLINT_URL="http://localhost:3000/jslint" +JSLINT_URL="http://localhost:3003/jslint" exec curl --form source="<${1}" --form filename="${1}" ${JSLINT_URL} #exec curl --form source="@${1}" ${JSLINT_URL}