Resolved error Unknown modifier: $pushAll

adding this:

 mongoose.plugin(schema => { schema.options.usePushEach = true });
This commit is contained in:
Paolo Arena
2018-12-27 18:13:43 +01:00
parent a0d39dcbb1
commit 06cd4b8f0d
4 changed files with 66 additions and 36 deletions

17
ecosystem.config.js Normal file
View File

@@ -0,0 +1,17 @@
module.exports = {
apps : [
{
name: "FreePlanetServerSide",
script: "./server/server.js",
watch: true,
env: {
"PORT": 3000,
"NODE_ENV": "development"
},
env_production: {
"PORT": 8080,
"NODE_ENV": "production",
}
}
]
}