これが私のエラーです。
PG::Error - could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (fe80::1) and accepting
TCP/IP connections on port 5432?
homebrewを使用してpostgresqlを/usr/ local / bin / psqlにインストールしました。このバージョンを認識させるには、これをbashファイルに追加する必要がありました。
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
RailsアプリにCDを挿入してコマンドを実行すると
rails s
それは次のように始まります
=> Booting Thin
=> Rails 4.0.0.beta1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
次に、でアプリを表示しようとするとhttp://0.0.0.0:3000
、上記のエラーが発生します。これが発生する理由を誰かが知っている可能性があります。