How do I configure Apache CouchDB to run on Heroku?

I have a node.js RESTful API that uses Apache CouchDB for its NoSQL database. I am new to Heroku and just deployed my API to a Heroku instance. However, the startup failed because it could not connect to CouchDB. I've researched how to set up CouchDB on Heroku but haven't found anything that works.

I found this package, but it doesn't exist anymore: https://elements.heroku.com/buildpacks/aindeev/heroku-buildpack-couchdb

I found this post but there is no possible solution: Host couchdb on heroku

Can anyone help give me some instructions on how I can host couchdb on heroku?

+5


source to share


1 answer


If you are at the stage of creating an application, you can do the following

heroku create --buildpack https://github.com/creativegeekjp/heroku-buildpack-couchdb.git

      

and thus create an application with the couchdb package installed.

However, if you already have an application, you can do this

heroku config:add BUILDPACK_URL="https://github.com/creativegeekjp/heroku-buildpack-couchdb.git" -a YOUR_APP

      

-a YOUR_APP is optional, you probably don't need it as you are probably in the folder that you initialized as heroku app when adding the buildpack package.



Or so much easier

heroku buildpacks:set https://github.com/creativegeekjp/heroku-buildpack-couchdb.git

      

after which you need to run

git push heroku master

      

deploy your buildpack

0


source







All Articles