0
我是新來的紅寶石。我正嘗試使用命令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'
如何解決該問題。服務器以前使用相同的配置工作。所以我在這裏錯過了一些東西。
我會檢查你的數據庫是否設置正確,配置是否正確 – claasz
現在嘗試使用SQLite代替Postgres。當你第一次出發時可能會更容易合作。 – claptimes
@claasz謝謝。檢查數據庫確實解決了我將使用SQLite研究的問題 – Hozefa