I am trying to deploy my Rails app to heroku but am getting an error, which is below. I am also incuding my gemfile.
我正在尝试将我的Rails应用程序部署到heroku但是收到错误,如下所示。我也在使用我的gemfile。
source 'https://rubygems.org'
gem 'rails', '3.2.12'
gem 'dynamic_form', '1.1.4'
gem 'json','1.7.7'
gem 'httparty', '0.10.2'
group :development do
gem 'sqlite3'
end
gem 'bootstrap-sass', '2.1'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'client_side_validations'
group :test, :development do
gem 'rspec-rails', '~> 2.11'
end
group :test do
gem 'capybara', '1.1.2'
gem 'factory_girl', '2.6.4'
end
gem 'devise', '2.1.0rc'
group :production do
gem 'pg', '0.12.2'
end
error
Gem files will remain installed in /tmp/build_232b9vaemz20q/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7 for inspection. Results logged to /tmp/build_232b9vaemz20q/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/ext/sqlite3/gem_make.out An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue. Make sure that gem install sqlite3 -v '1.3.7'
succeeds before bundling. ! ! Failed to install gems via Bundler. ! ! Heroku push rejected, failed to compile Ruby/rails app
Gem文件将保留在/tmp/build_232b9vaemz20q/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7中进行检查。结果记录到/tmp/build_232b9vaemz20q/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/ext/sqlite3/gem_make.out安装sqlite3(1.3.7)时出错,Bundler无法继续。在捆绑之前确保gem install sqlite3 -v'1.3.7'成功。 ! !无法通过Bundler安装gem。 ! ! Heroku推送拒绝,无法编译Ruby / rails应用程序
To git@heroku.com:warm-chamber-7399.git ! [remote rejected] master -> master (pre-receive hook declined)
致git@heroku.com:war-chamber-7399.git! [远程拒绝]主 - >主(预接收挂钩拒绝)
1 个解决方案
#1
0
Heroku doesn't support SQLite databases. You need to use PostgreSQL
on production.
Heroku不支持SQLite数据库。你需要在生产中使用PostgreSQL。
group :production, :staging do
gem "pg"
end
group :development, :test do
gem "sqlite3-ruby", "~> 1.3.0", :require => "sqlite3"
end
Go through this link : Sqlite3 Does Not Support Heroku
浏览此链接:Sqlite3不支持Heroku
#1
0
Heroku doesn't support SQLite databases. You need to use PostgreSQL
on production.
Heroku不支持SQLite数据库。你需要在生产中使用PostgreSQL。
group :production, :staging do
gem "pg"
end
group :development, :test do
gem "sqlite3-ruby", "~> 1.3.0", :require => "sqlite3"
end
Go through this link : Sqlite3 Does Not Support Heroku
浏览此链接:Sqlite3不支持Heroku