Tag: supervisor

nodemon,主pipe,永远都给不同的错误,有什么build议吗?

我已经尝试了所有三个一个一个地安装在全球范围内。 但似乎没有工作。 我正在使用这些重新启动服务器时,我做任何更改。 以下是我正在使用的命令。 nodemon npm start forever npm start supervisor npm start 来自主pipe的错误 Error: Cannot find module 'E:\dv\MEAN Lynda – Developing for the MEAN Stack and MongoDB\projects\project\start' at Function.Module._resolveFilename (module.js:339:15) at Function.Module._load (module.js:290:25) at Function.Module.runMain (module.js:447:10) at startup (node.js:142:18) at node.js:939:3 Program node start exited with code 1 Starting child process with 'node start' […]

通过Docker上Supervisor的Cron任务查看NodeJS应用程序日志

所以设置是… Docker> Supervisor> Cron> NodeJS任务。 目前我正在让我的主pipe将当前pipe理员设置的日志和错误日志输出到docker。 [program:cron] command=cron -f startsecs=10 priority=100 autostart=true autorestart=true stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 这显示了正在运行的cron任务,即 app_1 | 'Supervisord is running as root and it is searching ' app_1 | 2016-08-26 12:54:30,519 CRIT Supervisor running as root (no user in config file) app_1 | 2016-08-26 12:54:30,519 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing […]

如何将parameter passing给nodemon(或node-supervisor)中的可执行文件?

节点可以像这样使用debugging参数运行 $ node –debug src/file.js 我也可以像这样通过咖啡脚本二进制传递参数 $ coffee –nodejs –debug src/file.coffee 哪个工作。 但是当涉及主pipe时事情会变得更加困难。 运行咖啡脚本是没有问题的: $ supervisor -w src src/file.coffee 但是我想debugging我和主pipe一起运行的咖啡脚本。 如何通过主pipe发送–debug等参数? 我试着将可执行文件设置为像这样的参数的string: $ supervisor -w src -x "coffee –nodejs –debug" src/server.coffee 其中产生了一个无限重复的错误信息说 DEBUG:用'coffee –nodejs –debug src / server.coffee'开始subprocess DEBUG:execvp():没有这样的文件或目录 这很奇怪,因为在terminal中运行coffee –nodejs –debug src/server.coffee工作。 那么我怎么能通过主pipe发表意见 ? 编辑:我想扩大我的问题,提到我现在也尝试使用nodemon 。 看起来nodemon被认为比node-supervisor更可取,所以我会接受任何解释如何通过nodemon启动咖啡脚本来传递–debug到节点进程 编辑:这是来自nodemon的输出。 很明显,这些论点不是以相同的顺序传递的:-( $ nodemon -w src -x咖啡–nodejs […]