crontab-ui icon indicating copy to clipboard operation
crontab-ui copied to clipboard

Setting environment variables of node executable files is supported

Open CongAn opened this issue 3 years ago • 0 comments

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • [x] Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
  • [x] The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
  • [x] Read issues.md
  • [x] Gone through existing open and closed issues.
crontab_job_string += "; /usr/local/bin/node " + __dirname + "/bin/crontab-ui-mailer.js " + tab._id + " " + stdout + " " + stderr;

crontab.js第156行,/usr/local/bin/node固定字符串会导致apt-get安装的node所在目录不匹配,建议支持设置环境变量来自定义node所在目录。 如果有时间我将会来提交优化代码。

crontab.js line 156, /usr/local/bin/nodefixed string will cause the directory of the node installed byapt-getto mismatch. It is recommended to support setting environment variables to define the directory of the node. If I have time, I will submit the optimization code.

CongAn avatar May 03 '22 06:05 CongAn