我想将Heroku用于我的Ruby应用程序(不在Rails上)。
我写了一个Twitch聊天机器人,但无法部署。
以下是代码:https://github.com/sydneyfunnelAIO/sydneybt
我尝试添加buildpacks,但是在尝试部署时收到此警告:
App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/ruby.tgz
Enumerating objects: 20, done.
Counting objects: 100% (20/20), done.
Delta compression using up to 16 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (20/20), 4.60 KiB | 1.15 MiB/s, done.
Total 20 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to rocky-journey-82706.
remote:
To https://git.heroku.com/rocky-journey-82706.git
No default language could be detected for this app.
答案 0 :(得分:1)
Gemfile
和gemfile
是不同的东西。将gemfile
重命名为Gemfile
,将gemfile.lock
重命名为Gemfile.lock
,提交更改,然后再次部署。
如果您使用的文件系统无法区分这些东西(例如大多数Windows文件系统),则可能很难完成。参见Change case of a file on Windows?