Ramesh's picture

In Node.js i used following code to access local database 

var nano = require('nano')('http://localhost:5984');

I hosted my node.js app in aws beanstalk. I am using CouchDB - JSON based Web database powered by TurnKey GNU/Linux for database. what to use instesd of var nano = require('nano')('http://localhost:5984'); in live app to access database.

Forum: 
Jeremy Davis's picture

But my guess would be address of the CouchDB server. You could use IP, but make sure that you have an elastic IP or otherwise it may change. Alternatively, you could map a domain to your server and use that, although an elastic IP would still be recommended.
Ramesh's picture

I used my IPV4 address. It worked

 

Add new comment