0

我是红宝石新手。我正在尝试使用命令启动 ruby​​ 服务器bundle exec rails server -p 3018。但我收到以下错误。我检查了代码,没有newrelic.yml文件。

Cannot find or read /Users/hjodiawalla/Downloads/TheGiftsProject-Plugin/config/newrelic.yml
Exiting
/Library/Ruby/Gems/1.8/gems/activerecord-3.0.3/lib/active_record/connection_adapters/postgresql_adapter.rb:928:in 'initialize': could not connect to server: Connection refused (PG::Error)
Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused
Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused
Is the server running on host "localhost" and accepting TCP/IP connections on port 5432?
    from /Library/Ruby/Gems/1.8/gems/activerecord-3.0.3/lib/active_record/connection_adapters/postgresql_adapter.rb:928:in 'connect'
    from /Library/Ruby/Gems/1.8/gems/activerecord-3.0.3/lib/active_record/connection_adapters/postgresql_adapter.rb:928:in 'connect'

我该如何解决这个问题。服务器之前使用相同的配置工作。所以我在这里错过了什么。

4

1 回答 1

1

你必须安装一个config/newrelic.yml文件。(文档

于 2012-10-31T13:06:14.753 回答