dokku-mongodb-plugin icon indicating copy to clipboard operation
dokku-mongodb-plugin copied to clipboard

Multiple nodeJS app in one container

Open ppoliani opened this issue 10 years ago • 1 comments
trafficstars

I'm trying to deploy two nodeJS apps to dokku.

I did the following

dokku mongodb:create app
dokku mongodb:create admin

Then

dokku config app
dokku config admin

And finally push the local repositories to dokku.

I would expect both apps to run but instead I'm getting the following error

Connection fails:  { [MongoError: auth failed] name: 'MongoError', ok: 0, errmsg: 'auth failed', code: 18 }

It will be retried for the next request.

Apart from that, I want both apps to point to the same database, but I couldn't find an example of how to accomplish that

ppoliani avatar Jan 13 '15 00:01 ppoliani

If you only deploy one of the applications will that one work?

jeffutter avatar Mar 08 '15 19:03 jeffutter