gpt4 book ai didi

javascript - Heroku 部署 - 推送被拒绝,未检测到 Cedar 支持的应用程序

转载 作者:行者123 更新时间:2023-11-28 19:36:05 25 4
gpt4 key购买 nike

我正在尝试在 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 可以确定哪种类型这是应用程序的一部分并相应地编译它。

类似于:

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com