簡體   English   中英

啟動Ruby服務器時出錯

[英]Error while starting ruby server

我是紅寶石的新手。 我正在嘗試使用命令bundle exec rails server -p 3018啟動ruby服務器。 但是我收到以下錯誤。 我檢查了代碼,沒有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'

我該如何解決該問題。 服務器之前使用相同的配置。 所以我錯過了這里的東西。

您必須安裝config/newrelic.yml文件。 docs

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM