Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby Git can';找不到集合构建包_Ruby_Git_Heroku_Buildpack - Fatal编程技术网

Ruby Git can';找不到集合构建包

Ruby Git can';找不到集合构建包,ruby,git,heroku,buildpack,Ruby,Git,Heroku,Buildpack,所以我正在学习如何与Heroku一起使用git,而我似乎无法用git推动我的set回购。因此,我将buildpack设置为ruby,并将Heroku设置为ruby root@slacker:~/ruby# heroku buildpacks:set heroku/ruby Buildpack set. Next release on stormy-earth-98069 will use heroku/ruby. Run git push heroku master to create a ne

所以我正在学习如何与Heroku一起使用git,而我似乎无法用git推动我的set回购。因此,我将buildpack设置为ruby,并将Heroku设置为ruby

root@slacker:~/ruby# heroku buildpacks:set heroku/ruby
Buildpack set. Next release on stormy-earth-98069 will use heroku/ruby.
Run git push heroku master to create a new release using this buildpack.
接下来,我尝试使用git push更新我的回购协议,我得到一个错误,这样说

root@slacker:~/ruby# git push heroku master
...
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Failed to detect set buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/ruby.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
...

所以我想知道是什么导致git这么做的?

你的问题已经有了答案。根据,运行“git push”的目录似乎没有GEM文件

我得到了同样的错误,但我确实有一个Gemfile,还有Gemfile.lock…这里是一样的。在我要从中推送的目录中有一个Gemfile和Gemfile.lock。我也在master上,但仍然会遇到这个错误。