我偶然发现了这个存储库:https://github.com/hatnote/rcmap,并看到代码中的大多数文件都是.js文件。它在静态文件夹下也有main.js。我对node.js有非常基本的了解,所以我试着在Heroku中克隆github文件夹来部署它。
但是,它会失败,并显示未检测到Cedar应用程序的消息。
!Push rejected, no Cedar-supported app detected
To git@heroku.com:stark-mesa-4834.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:stark-mesa-4834.git'我遗漏了什么?是否需要一些额外的文件?或者这个repo不能部署到Heroku?
发布于 2013-08-17 17:13:02
Heorku只能通过节点打包模块(NPM) package.json文件识别Node.js应用程序。看起来您尝试部署的应用程序没有使用NPM。
请参见:
Heroku上的
https://stackoverflow.com/questions/18286811
复制相似问题