2016-11-13 1 views
-1

は私がbundle exec rake db:createを実行したときに、これを取得してください:バンドルのexecすくいデシベル:エラーを作成

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? 

任意のアイデアこの問題を解決する方法?

+0

で同じになりますか? Postgres? – Pragun

+0

postgresql serverを実行しましたか? – falsetru

+0

はい、Postgres dbを使用しています。このアプリを実行しようとしている:github.com/harrystech/prelaunchr – user4210063

答えて

0

おそらく許可の問題が原因です。 /etc/postgresql/<your version of pg>/main/に移動し、pg_hba.confを開きます。

local all postgres peerという行を検索し、local all all trustに置き換えます。 その後、端末にsudo service postgresql restartを実行します。

0

はこれを試してみてください:

それは

あなたdatabase.ymlは次のようになります動作します。

development: 
    adapter: postgresql 
    encoding: unicode 
    database: <DATABASE_NAME> 
    pool: 5 
    username: <username> 
    password: <password> 
    host: localhost 
    port: 5432 

そして、それはあなたがどのようなデータベースを使用している別の環境

+0

まだ同じエラーが発生しています。私はこのアプリケーションを実行しようとしています。https://github.com/harrystech/prelaunchr – user4210063

+0

これを追加しましたか?port:5432 in database.yml – Ranzit

関連する問題