Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku 我收到错误:找不到模块'/app/index.js';论赫罗库_Heroku - Fatal编程技术网

Heroku 我收到错误:找不到模块'/app/index.js';论赫罗库

Heroku 我收到错误:找不到模块'/app/index.js';论赫罗库,heroku,Heroku,我的文件是: Worker:index.js 我确信所有内容都正确大写,我不知道该怎么办。根据官方文档,您可能应该使用小写的worker: worker: index.js 但是您的错误来自index.js位置 编辑:我在中找到了一些内容,我认为您需要使用: worker: node index.js 在您的项目根目录中有一个index.js?是的,我有一个。“我确信所有内容都正确大写”-那么为什么您的profile包含工作者:,而不是工作者:?在任何情况下,您的Procfile应该更像wo

我的文件是: Worker:index.js
我确信所有内容都正确大写,我不知道该怎么办。

根据官方文档,您可能应该使用小写的worker:

worker: index.js
但是您的错误来自index.js位置

编辑:我在中找到了一些内容,我认为您需要使用:

worker: node index.js

在您的项目根目录中有一个
index.js
?是的,我有一个。“我确信所有内容都正确大写”-那么为什么您的
profile
包含
工作者:
,而不是
工作者:
?在任何情况下,您的
Procfile
应该更像
worker:node index.js
。请回答您的问题,并向我们展示您的整个
Procfile
和目录结构。