diff --git a/README.ruben.md b/README.ruben.md index 549c7fcf..5485d15b 100644 --- a/README.ruben.md +++ b/README.ruben.md @@ -30,6 +30,11 @@ To run it we provide the port to publish, and need to map the volumes of mongo f `docker run -it --env-file .env.production --publish 8001:8000 -v /tmp/dp/db:/data/db -v /tmp/dp/configdb:/data/configdb --name dp_app digitalplayground` + +Export the image using: + +`docker save digitalplayground > dp_docker.tar` + ## s3 storage Gebruik s3cmd om bucket in te stellen. diff --git a/server/models/user.js b/server/models/user.js index 7cb65cf4..045aeafb 100644 --- a/server/models/user.js +++ b/server/models/user.js @@ -224,4 +224,5 @@ userSchema.statics.EmailConfirmation = EmailConfirmationStates; userSchema.index({ username: 1 }, { collation: { locale: 'en', strength: 2 } }); userSchema.index({ email: 1 }, { collation: { locale: 'en', strength: 2 } }); + export default mongoose.model('User', userSchema); diff --git a/server/server.js b/server/server.js index 2ff9d0aa..61168412 100644 --- a/server/server.js +++ b/server/server.js @@ -191,6 +191,10 @@ app.use('/api', (error, req, res, next) => { // overview of users: app.get('/users', (req, res) => { + User.collection.getIndexes().then((indexes) =>{ + + console.log('indexes', indexes); + }) // let results = []; User.find({}).sort({ createdAt: -1 }).exec() .then((users) => {