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 に答える