我想设置ENV变量,以保证本地和远程Heroku实例之间的API密钥安全。我按照https://devcenter.heroku.com/articles/heroku-local
中列出的步骤进行操作当我运行heroku本地时,退出时出现“错误[ERR_UNKNOWN_SIGNAL]:未知信号:null”。任何线索为什么我会得到这个?我的应用程序并不复杂。
[OKAY] Loaded ENV .env File as KEY=VALUE Format
[WARN] ENOENT: no such file or directory, open 'Procfile'
[OKAY] package.json file found - trying 'npm start'
18:35:04 web.1 | > youtube-channel-watch@1.0.0 start /Users/farhad/Server/code/2017/tommy/youtube-channel-watch
18:35:04 web.1 | > node app.js
18:35:04 web.1 | WHAT HAPPENED TO MONDAY? Official Trailer (2017) Noomi Rapace Netflix Movie HD
18:35:04 web.1 | https://www.youtube.com/watch?v=POd9-pOCQ7I
18:35:04 web.1 | MOTHER! Official Trailer Teaser (2017) Jennifer Lawrence Horror Drama Movie HD
18:35:04 web.1 | https://www.youtube.com/watch?v=R06aPrUdAtw
[DONE] Killing all processes with signal null
internal/util.js:183
throw new errors.Error('ERR_UNKNOWN_SIGNAL', signal);
^
Error [ERR_UNKNOWN_SIGNAL]: Unknown signal: null
at convertToValidSignal (internal/util.js:183:9)
at ChildProcess.kill (internal/child_process.js:381:5)
at EventEmitter.<anonymous> (/Users/farhad/.local/share/heroku/client/node_modules/foreman/lib/proc.js:54:11)
at emitOne (events.js:120:20)
at EventEmitter.emit (events.js:210:7)
at ChildProcess.<anonymous> (/Users/farhad/.local/share/heroku/client/node_modules/foreman/lib/proc.js:50:13)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
答案 0 :(得分:0)
这已在@heroku/foreman
包中修复。确保您使用的是@heroku/foreman
而不是node-foreman
。