Explorar o código

Use forever.js

Jake %!s(int64=10) %!d(string=hai) anos
pai
achega
abeb6116e4
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  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": {