1
영원히 모듈 (https://github.com/nodejitsu/forever)을 사용하여 docpac을 실행하고 싶습니다. 저는 docpad 6.53.0과 node.js 0.10.15가있는 데비안 서버에 있습니다. 내가영원히 모듈을 사용하여 실행 한 Docpad가 작동하지 않습니다.
cd mydocpad-website
forever start <path_to_docpad>/docpad run
을 할 때 나는 로그 파일에 다음과 같은 오류를 발견 : 나는 영원히없이 docpad를 시작하면
info: Welcome to DocPad v6.53.0, local installation
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: eco, highlightjs, marked, paged
info: Environment: development
error: Something went wrong with the action
error: An error occured:
Error: Could not start the web server, chances are the desired port 9778 is already in use
at Server.<anonymous> (/home/bru/website/node_modules/docpad/out/lib/docpad.js:4138:17)
at Server.g (events.js:175:14)
at Server.EventEmitter.emit (events.js:95:17)
at net.js:1043:12
at process._tickDomainCallback (node.js:459:13)
이 모든 것이 잘 작동합니다.
영원히 @reboot를 crontab 파일에 넣지 않겠습니까? 또는 inittab을 사용하는 것이 더 좋습니까?
힌트를 보내 주셔서 감사합니다.