Docpad运行永远模块不起作用

我想在forever模块的帮助下运行docpac( https://github.com/nodejitsu/forever )。 我在一个Debian服务器与docpad 6.53.0和node.js 0.10.15。 但是当我这样做

cd mydocpad-website forever start <path_to_docpad>/docpad run 

我在日志文件中发现以下错误:

 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) 

当我开始docpad没有永远,一切工作正常。

我的计划是永远把@reboot放在一个crontab文件中。 还是使用inittab更好?

感谢任何提示。

你有没有尝试传递env参数?

尝试:

 forever start ./node_modules/docpad/bin/docpad run --env static