OK、問題は次のとおりです。ローカルにある DB をアップロードしたいのですが、localhost で使用しています。
PGPASSWORD=mypassword pg_dump -Fc --no-acl --no-owner -h localhost -U root app_db > app_db.dump
私はいつも得る:
pg_dump: [archiver (db)] connection to database "app_db" failed: 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?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
問題は、heroku アプリのアドレスではなく localhost を書いていることだと思います。正しいアドレスを取得する方法を教えてもらえますか?