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