初心者の質問。
以下は、Cradle CouchDB のドキュメントに記載されている例です: https://github.com/cloudhead/cradle
http://living-room.couchとは何ですか?
5984とは?
new(cradle.Connection)('http://living-room.couch', 5984, {
cache: true,
raw: false
});
私は自分のcouchdbから情報を取得しようとしています:
URL: subdomain.mywebsite.com
ノードポート: 12345
カウチデシベルポート: 67891
上記のコードを使用して接続するさまざまな方法を試しましたが、以下のエラーが発生します。
正しい接続方法は?
17 May 09:50:57 - [nodemon] restarting due to changes...
17 May 09:50:57 - [nodemon] ./test_couch.js
17 May 09:50:57 - [nodemon] starting node
Server running somewhere
request starting...
request starting...
node.js:181
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ECONNREFUSED, Connection refused
at Socket._onConnect (net.js:602:18)
at IOWatcher.onWritable [as callback] (net.js:186:12)
17 May 09:51:05 - [nodemon] app crashed - waiting for file change before starting...