From 2780ae05d3a01056352e69fb64b0c4d32d3799cb Mon Sep 17 00:00:00 2001 From: jomo Date: Fri, 27 Mar 2015 09:50:54 +0100 Subject: [PATCH] move www.js to lib it's not a binary, why is this in bin? --- {bin => lib}/www.js | 0 package.json | 2 +- server.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename {bin => lib}/www.js (100%) diff --git a/bin/www.js b/lib/www.js similarity index 100% rename from bin/www.js rename to lib/www.js diff --git a/package.json b/package.json index 78ac5f7..72450c6 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ ], "scripts": { "postinstall": "cp 'lib/config.example.js' 'lib/config.js'", - "start": "forever -l logs/log.log -o logs/out.log -e logs/error.log -p ./ -a --minUptime 8000 --spinSleepTime 1500 bin/www.js", + "start": "forever -l logs/log.log -o logs/out.log -e logs/error.log -p ./ -a --minUptime 8000 --spinSleepTime 1500 lib/www.js", "test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" }, "engines": { diff --git a/server.js b/server.js index 9737f1a..706cf88 100644 --- a/server.js +++ b/server.js @@ -108,6 +108,6 @@ exp.close = function(callback) { module.exports = exp; if (require.main === module) { - logging.error("Please use 'npm start' or 'bin/www.js'"); + logging.error("Please use 'npm start' or 'lib/www.js'"); process.exit(1); } \ No newline at end of file