Test connection to remote mongodb.

This commit is contained in:
Andrés Uribe Stengel 2020-07-03 10:49:45 +02:00
parent 0858409848
commit ecf43003b7

View File

@ -2,4 +2,12 @@ import { Meteor } from 'meteor/meteor';
Meteor.startup(() => { Meteor.startup(() => {
// code to run on server at startup // code to run on server at startup
process.env.MONGO_URL = "mongodb://root:devtest@cloud.timovolkmann.de:27017/Smart_Garden";
process.env.MONGO_OPLOG_URL = "mongodb://root:devtest@cloud.timovolkmann.de:27017/local?authSource=Smart_Garden";
const myPLants = new Mongo.Collection("myPlantsTest")
myPLants.insert({ name: 'Watercress' });
}); });