hta*_*irt 8 postgresql ruby-on-rails heroku heroku-postgres
我想将我的本地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'
Run Code Online (Sandbox Code Playgroud)
其次是关于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)
Run Code Online (Sandbox Code Playgroud)
Min*_*ohn 11
在您的application.rb中包含以下内容,位于Module Appname上方
config.assets.initialize_on_precompile = false
Run Code Online (Sandbox Code Playgroud)
阅读Heroku Labs:user-env-compile文章
归档时间: |
|
查看次数: |
3444 次 |
最近记录: |