我无法弄清楚为什么我会一直收到这个错误。我已经尝试修改buildpack,Gemfile和database.yml,但不断收到相同的消息:
Counting objects: 563, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (535/535), done.
Writing objects: 100% (563/563), 129.15 KiB | 0 bytes/s, done.
Total 563 (delta 263), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Failed to detect app matching no buildpack
remote: More info: https:#
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to #.
remote:
To https:#
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://#'
答案 0 :(得分:0)
你是否在你的Gemfile上加入了ruby版本? ruby'2.2.4'
答案 1 :(得分:0)
在创建Heroku应用程序时,您似乎无法设置buildpack。根据{{3}},您可以手动设置
heroku buildpacks:set heroku/ruby
答案 2 :(得分:0)
我遇到了同样的问题并通过 Inistalizing 解决了这个问题并再次提交git然后使用heroku create