我正在尝试在heroku服务器上部署我的3d游戏(使用three.js创建)。但是在命令“ git push heroku master”之后,出现以下问题:

Initializing repository, done.
Counting objects: 252, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (251/251), done.
Writing objects: 100% (252/252), 2.38 MiB | 89.00 KiB/s, done.
Total 252 (delta 55), reused 0 (delta 0)

-----> Removing .DS_Store files

 !     Push rejected, no Cedar-supported app detected

To git@heroku.com:infinite-woodland-7676.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:infinite-woodland-7676.git'


链接到存储库-> https://github.com/mkkroliks/Snake3d

我没有使用heroku的经验,因此这可能是简单的解决方案,但我在网上找不到任何内容。

最佳答案

您需要添加描述如何运行应用程序的Procfile或描述依赖关系的package.json文件,以便Heroku可以确定这是哪种类型的应用程序并相应地对其进行编译。

就像是:


https://devcenter.heroku.com/articles/getting-started-with-nodejs#define-a-procfile


要么


https://devcenter.heroku.com/articles/getting-started-with-nodejs#declare-app-dependencies

关于javascript - Heroku部署-推送被拒绝,未检测到Cedar支持的应用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25864508/

10-11 22:47
查看更多