소스 검색

move www.js to lib

it's not a binary, why is this in bin?
jomo 10 년 전
부모
커밋
2780ae05d3
3개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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": {
   "scripts": {
     "postinstall": "cp 'lib/config.example.js' 'lib/config.js'",
     "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"
     "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": {
   "engines": {

+ 1 - 1
server.js

@@ -108,6 +108,6 @@ exp.close = function(callback) {
 module.exports = exp;
 module.exports = exp;
 
 
 if (require.main === module) {
 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);
   process.exit(1);
 }
 }