Resolved error Unknown modifier: $pushAll
adding this:
mongoose.plugin(schema => { schema.options.usePushEach = true });
This commit is contained in:
17
ecosystem.config.js
Normal file
17
ecosystem.config.js
Normal 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",
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user