ruby on rails - Postgres Error when Deploying to Digital Ocean Droplet -
i keep getting error while trying deploy app digital ocean droplet using capistrano's cap production deploy. error message says:
rake aborted! gem::loaderror: specified 'postgresql' database adapter, gem not loaded. add `gem 'pg'` gemfile but gemfile include pg in production:
... group :production gem 'rails_12factor' gem 'pg' end ... what can causing this?
new development:
i tried resetting db adapter sqlite3, see whether deployment go through, , got same error:
gem::loaderror: specified 'sqlite3' database adapter, gem not loaded. add `gem 'sqlite3'` gemfile
it turned out known bug win users. in gemfile.lock, change
sqlite3 (1.3.10-x86-mingw32) to
sqlite3 (1.3.10-x64-mingw32) i did directly in repo because each time made change locally , ran bundle install, x64 flag kept getting switched back.
Comments
Post a Comment