瀏覽代碼

Merge pull request #83 from Jake0oo0/foreverjs

Use forever.js
Jake 10 年之前
父節點
當前提交
ef897359a1
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 0 0
      logs/.gitkeep
  2. 2 1
      package.json

+ 0 - 0
logs/.gitkeep


+ 2 - 1
package.json

@@ -22,11 +22,12 @@
   ],
   ],
   "scripts": {
   "scripts": {
     "postinstall": "cp 'modules/config.example.js' 'modules/config.js'",
     "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"
     "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": {
   "dependencies": {
     "canvas": "1.1.6",
     "canvas": "1.1.6",
+    "forever": "^0.13.0",
     "jade": "~1.8.2",
     "jade": "~1.8.2",
     "lwip": "0.0.6",
     "lwip": "0.0.6",
     "mime": "1.2.11",
     "mime": "1.2.11",