經過24小時試圖找到我的應用程序的問題。我終於找到了問題。bundle exec rake資產:預編譯 - 數據庫配置沒有指定適配器
我跑
rake assets:precompile RAILS_ENV=production
,我不停地收到這個錯誤。
/Users/vezu/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /Users/vezu/.rvm/gems/[email protected]/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。 – Benjamin