Browse Source

Use forever.js

Jake 10 years ago
parent
commit
abeb6116e4
2 changed files with 1 additions and 1 deletions
  1. 0 0
      logs/.gitkeep
  2. 1 1
      package.json

+ 0 - 0
logs/.gitkeep


+ 1 - 1
package.json

@@ -22,7 +22,7 @@
   ],
   "scripts": {
     "postinstall": "cp 'modules/config.example.js' 'modules/config.js'",
-    "start": "node bin/www.js",
+    "start": "forever start -l logs/log.log -o logs/out.log -e logs/error.log -p ./ -a --minUptime 8000 --spinSleepTime 1500 bin/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"
   },
   "dependencies": {