- Created Test Environment un Server test.freeplanet.app

- mongodb open 2 connections port (3000 and 3001) - 27017 and 27018
This commit is contained in:
Paolo Arena
2019-02-13 01:51:33 +01:00
parent ea06079878
commit df31a9ea9b
5 changed files with 19 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ mongoose.Promise = global.Promise;
mongoose.level = "";
mongoose.plugin(schema => {
schema.options.usePushEach = true
});
@@ -14,7 +15,7 @@ var options = {
// user: process.env.UDB,
// pass: process.env.PDB,
useMongoClient: true,
useNewUrlParser: true,
// useNewUrlParser: true, // non supportato
promiseLibrary: require('bluebird')
// useCreateIndex: true,