我想将我的本地Rails应用程序(完美运行)部署到Heroku,但收到以下错误消息:
rake aborted!
could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
/tmp/build_21pkcz898c28o/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1216:in `initialize'
紧随其后的是许多行postgres_adapter
。
我有点失望,因为我将Heroku覆盖config / database.yml,所以为什么要谈论在服务器上运行服务器127.0.0.1
(我不在寻找远程数据库)?
谢谢,
更新
如果这可以帮助运行,则heroku config
给出以下内容:
DATABASE_URL: xxx
HEROKU_POSTGRESQL_GRAY_URL: xxx (the same xxx as above)
在模块Appname上方的application.rb中包括以下内容
config.assets.initialize_on_precompile = false
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句