Hi, I got this error while running the production version of the software…
And I plan to use the built-in mongo and I do not want to use a separate server for the database.
and this is pm2 json file :
GNU nano 4.8 pm2.json
{
"apps": [
{
"name": "meteor",
"cwd": "/home/App/bundle/",
"script": "main.js",
"instances":1,
"env": {
"NODE_ENV": "production",
"WORKER_ID": "0",
"PORT": "3000",
"ROOT_URL": "http://xxx.xxx.xxx.xxx/",
"MONGO_URL": "mongodb://localhost:27017/meteor",
"MONGO_OPLOG_URL": "mongodb://localhost:27017/local",
"HTTP_FORWARDED_COUNT": "1",
"MAIL_URL": "",
"METEOR_SETTINGS": {
"public": {
"MainUrl" : "http://xxx.xxx.xxx.xxx/"
},
"PrerenderIO": {
"serviceUrl": "http://localhost:3030/",
"token": "nothing"
}
}
}
}
]
}
And this is mongod.conf
:
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
# how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
#security:
#operationProfiling:
#replication:
# replSetName: meteor
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp: