每次运行时:
git push heroku master
我遇到了以下错误:
Running: rake assets:precompile
rake aborted!
Can't connect to MySQL server on '127.0.0.1'
我正在运行
rails -v Rails 3.2.11
并且
ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0]
我已通过Heroku CLI安装了ClearDB,看起来一切正常,但我无法解决这个错误。
以下是我的生产yml:
production:
adapter: mysql2
encoding: utf8
host: localhost
database: pm_production
username: root
password: root
allow_concurrency: true
pool: 5