KeystoneJS with Mongo remote

1

Good evening!

I'm starting to study KeystoneJS versão 0.3.17 . Following "Getting started" from the official website, we ask for nodejs and mongodb , but I want to use this cloud service from mongodb .

How could you do this integration? It's possible? Well, I did not install mongodb on my computer and when I run the command node keystone this error happens.

  

Edit:Forremoteconnection KeystoneJS makes the .env property available to MONGO_URI=mongodb://your-server/database-name

I tested the remote connection with command line using this command: mongo "mongodb://***-shard-00-00-nalfi.mongodb.net:27017,***-shard-00-01-nalfi.mongodb.net:27017,***-shard-00-02-nalfi.mongodb.net:27017/test?replicaSet=***-shard-0" --authenticationDatabase admin --ssl --username *** --password *** , the connection is successful.

When I set the MONGO_URI property to .env , this way: MONGO_URI=mongodb://***:***@***-shard-00-00-nalfi.mongodb.net:27017,***-shard-00-01-nalfi.mongodb.net:27017,***-shard-00-02-nalfi.mongodb.net:27017/test?ssl=true&replicaSet=***-shard-0&authSource=admin , an authentication error is returned.

I am using exactly the same credentials and names of the bank and replica.

  

Edit : The problem was in the characters of the password used. Its not for what reason but the password can not have the "@" character in these connection conditions.

    
asked by anonymous 01.06.2017 / 01:32

0 answers