Browse Source

move www.js to lib

it's not a binary, why is this in bin?
jomo 10 years ago
parent
commit
2780ae05d3
3 changed files with 2 additions and 2 deletions
  1. 0 0
      lib/www.js
  2. 1 1
      package.json
  3. 1 1
      server.js

+ 0 - 0
bin/www.js → lib/www.js


+ 1 - 1
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": {

+ 1 - 1
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);
 }