直到现在,我都可以毫无问题地将应用推送到heroku
现在我得到了:
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: PG::ConnectionBad: could not connect to server: Connection refused
remote: Is the server running on host "127.0.0.1" and accepting
remote: TCP/IP connections on port 5432?
...
remote: ! Precompiling assets failed.
remote: ! Attempted to access a nonexistent database:
remote: ! https://devcenter.heroku.com/articles/pre-provision-database
它一定与localization
相关。我开始使用I18n
和locales
...
直到Rails 3
为止:
config.assets.initialize_on_precompile = false
但现在不是。
有什么建议吗? 感谢您的帮助和时间:)