申し訳ありませんが、私はRuby on Railsで新しく、チュートリアルに従っていますが、データベースをherokuにプッシュしようとすると困っています。私はすでに私のLinuxにpostgresqlをインストールし、チュートリアルをたくさん試しました。Rails- Heroku - rake aborted! gem install activerecord-postgresql-adapter
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these >plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or >fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the >release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2- >has-been-released. (called from at /app/Rakefile:7) rake aborted! Please install the postgresql adapter:
gem install activerecord-postgresql-adapter
(pg is >not part of the bundle. Add it to Gemfile.)Tasks: TOP => db:migrate => db:load_config (See full trace by running task with --trace)
マイGemfileはこれです:私はheroku rake db:migrate
を入力すると
は、私は、このエラーメッセージが表示されます
source 'https://rubygems.org'
gem 'rails', '3.2.2'
gem 'sqlite3'
group :production do
gem 'pg'
end
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 'activerecord-postgresql-adapter'(> = 0)を見つけることができませんでした エラー:可能な選択肢:activerecord-jdbcpostgresql-adapter、activerecord-postgis-adapter 、activerecord-jdbcmssql-adapter、activerecord-jdbcmysql-adapter、activerecord-postgresql-cursors – Aklovo
私の答えを更新しました。私は解決策をラインの下に置いた。 –
この解決策はここではうまくいくようですが、この問題がまだ残っている場合は、 "gem list"出力とGemfile.lockで更新できますか?また、バンドルインストールを使用していることを確認してください。 – YogiZoli