O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MongoDB

So, you should have your web shop running now, but we are currently running on the database that we used to develop our software. We need a separate instance for our development environment and our current environment. So, first let's create a new database and give our current user rights to that database. We will need to create a new database and user that we can use for our new environment.

Since we have not yet created an admin user, this was not really necessary until now. We kind of locked ourselves out of the database. Not a smart thing to do, but easy to fix. First, we need to disable authentication in the config file and restart MongoDB:

sudo vi /etc/mongod.conf[...]#security:#  authorization: 'enabled'[...]sudo service mongod ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required