【发布时间】:2012-06-04 10:07:52
【问题描述】:
经过 24 小时尝试找出我的应用程序的问题。我终于找到了问题所在。
我跑了
rake assets:precompile RAILS_ENV=production
我不断收到此错误。
/Users/vezu/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /Users/vezu/.rvm/gems/ruby-1.9.3-p194@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
database configuration does not specify adapter
Tasks: TOP => environment
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/vezu/.rvm/rubies/ruby-1.9.3-p194/bi...]
我的 database.yml 文件如下所示
development:
adapter: postgresql
host: localhost
encoding: unicode
database: ndoda_development
pool: 5
username:
password:
test:
adapter: postgresql
encoding: unicode
database: ndoda_test
pool: 5
【问题讨论】:
-
m8 你的生产数据库配置在哪里?))
-
Heroku 上不需要它。 Heroku 为您处理。抱歉,我忘了提到我使用的是 heroku。