我正在尝试将rails 3.2 ruby 1.9.3 app部署到数字海洋。 后做cap deploy:setup
,cap deploy:check
,cap deploy
,我得到以下错误:请安装postgresql适配器:`gem install activerecord-postgresql-adapter`
$ gem install activerecord-postgresql-adapter
* ←[33mexecuting "cd -- /home/deployer/apps/csd3/releases/20130724142600 && RA
ILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile"←[0m
servers: ["192.241.141.56"]
[192.241.141.56] executing command
** [out :: 192.241.141.56] rake aborted!
** [out :: 192.241.141.56] Please install the postgresql adapter: `gem install
activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfil
e.)
我跑的宝石在服务器上安装了activerecord-PostgreSQL的适配器和它完成。但是,当我执行cap部署时,我会得到相同的消息。我发现这个问题可能在database.yml文件中,但似乎很好。
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: postgresql
encoding: unicode
database: chodae_database
host: 192.241.141.56
pool: 5
username: chodae
password:
而且Gemfile中:
group :development do
gem 'quiet_assets', '1.0.2'
gem 'sqlite3', '1.3.7'
gem 'thin', '1.5.0'
gem 'better_errors', '0.7.0'
gem 'binding_of_caller', '0.7.1'
gem 'meta_request', '0.2.2'
gem 'wirble', '0.1.3'
gem 'hirb', '0.7.1'
gem 'populator3', '0.2.7'
gem 'faker', '1.1.2'
gem 'localtunnel'
gem 'capistrano'
end
group :production do
gem 'pg', '0.15.1'
gem 'pg_search', '0.6.2'
gem "nginx", '0.0.2'
gem "passenger", "~> 4.0.10"
end
我怎样才能解决这个问题?
当你尝试做'酿造安装postgresql'? – irosenb
我开发环境的窗口运行 – user2612027