即使我在开发块中有sqlite,Heroku也不接受推送 [英] Heroku does not accept push even though I have sqlite in development block

查看:78
本文介绍了即使我在开发块中有sqlite,Heroku也不接受推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Gemfile 中有以下几行:

I have the following lines in my Gemfile:

gem 'rails', '3.1.1'

group :production do
  gem 'pg'
end        

group :development, :test do
  gem 'sqlite3'
end

我也跑了 bundle install 让我的 Gemfile.lock 更新。

当我推送到heroku我仍然遇到以下错误:

When I push to heroku I still get the following error:

 !
 !     Failed to install gems via Bundler.
 !     
 !     Detected sqlite3 gem which is not supported on Heroku.
 !     http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

我缺少什么?

推荐答案

Hoppla。我在这里犯了一个相当愚蠢的错误。我现在正在一个分支上工作,但我把主分支推到了Herokum,就像我习惯的那样。

Hoppla. I made quite a silly mistake here. I was currently working on a branch but I pushed the master branch to Herokum, like I was used to.

所以 git push heroku master 确实推送了一个旧版本的分支,当然不包含我对Gemfile的更改。

So git push heroku master did push an old version of the branch, which did of course not contain my changes to the Gemfile.

这篇关于即使我在开发块中有sqlite,Heroku也不接受推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆