Alchemy CMS-Rails-本地化-Heroku-预编译资产-需求数据库

时间:2018-10-30 05:34:20

标签: ruby-on-rails database heroku alchemy-cms precompile-assets

直到现在,我都可以毫无问题地将应用推送到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相关。我开始使用I18nlocales ...

直到Rails 3为止:

config.assets.initialize_on_precompile = false

但现在不是。

有什么建议吗? 感谢您的帮助和时间:)

0 个答案:

没有答案