-
Sitecore 7.5 and MongoDB through different environments
March 9, 2015 Rodrigo Peplau 0
Jan Löwgren, another Sitecore Consultant, in response to my post “Sitecore Environments for Dev, QA, UAT and Production” said It would be interesting to elaborate on how to handle MongoDB though different environments. In the project I am currently working the team was about to upgrade from Sitecore 7.2 to 7.5, so the opportunity to engage into a MongoDB experience was the excuse I wanted to volunteer myself to the upgrade task.
Trusting your instincts
My first thought before getting my hands on the issue was trying to handle mongo databases as we do with Sql server dbs: each Developer would need to install a MongoDB server at their machines.
Setup before Sitecore 7.5
For the context of the project, our environment’s setup was pretty similar to what is described in my first article:
- Developers and front-end devs works at their local machines, with local copies of solution and databases – everyone has their set of “master”, “core” and “web” databases. TDS is used to syncronize Sitecore data with the team;
- We have an integration server Sitecore instance, periodically updated by TeamCity on every build change;
- We also have a QA Sitecore instance, updated by the trigger of the QA team;
- The last instance is the UAT server, also updated by TeamCity by the trigger of someone with this privilege (usually the Project Owner by request of the client);
Solution
The final setup ended up being pretty similar to my first thought. It makes sense if you think that MongoDB is not much different than a normal Database Server. At Sitecore 7.5 MongoDB serves DMS Analytics and access data, so we can safely have separated databases for each Sitecore instance (Dev, CI, QA and UAT).
MongoDB Installation
Since every developer needs a separated MongoDB server, everyone needs to install at their own machines and access using their “localhost”. This very easy operation can be made by following the steps of this article (Sitecore and xDB – Setting up MongoDB on your developer machine).
Here is where the developer’s ConnectionStrings will end up:
<add name=”analytics” connectionString=”mongodb://localhost/dotz_analytics” />
<add name=”tracking.live” connectionString=”mongodb://localhost/dotz_tracking_live” />
<add name=”tracking.history” connectionString=”mongodb://localhost/dotz_tracking_history” />MongoDB server initializing
MongoDB is not a service you can install on Windows – you must run it manually – so it’s recommended to have a batch pinned up at your Windows start button before you launch your development instance.
Windows Start Menu with a link to the batch that starts MongoDB
Your batch can simply contain the following:
“C:\Program Files\MongoDB\Server\3.0\bin\mongod.exe” –dbpath “D:\MongoDB”
- First path depends on where your MongoDB is installed
- Second path is where MongoDB creates the files to manage databases
What about the CI, QA and UAT servers?
At the Continuous Integration servers the installation is pretty much the same, the only difference at our case is that we opted to have a centralized MongoDB server, with separated sets of databases for each Sitecore instance (CI, QA and UAT).
Categories: Continuous Integration, Environments, TDS, Team City
How would you do it: 2 levels menu Best way to setup Active Directory Module in a Sitecore Solution
Proudly 9x Sitecore MVP
(2016-2024)
Localization
Recent Posts
Recent Comments
- navan on Meet MVPinny: the AI-Powered Sitecore Assistant
- Adriana on Content generation with Sitecore Connect and ChatGPT
- NAVAN on Automatic Sitecore NuGet upgrades with Powershell
- Hedipo S Menezes on Corey Peplau wrote this - WFFM conflict with Unity DI and a lesson on how Sitecore community is so amazing
- Rodrigo Peplau on ERROR [Content Testing]: Cannot find PhantomJS executable at ' (...) /data/tools/phantomjs/phantomjs.exe'. Aborting screenshot generation.
Archives
- January 2025
- June 2024
- April 2024
- February 2024
- December 2023
- November 2023
- August 2023
- July 2023
- January 2023
- February 2022
- December 2021
- November 2021
- March 2021
- July 2020
- February 2020
- September 2019
- July 2019
- April 2019
- March 2019
- December 2018
- February 2018
- January 2018
- November 2017
- September 2017
- August 2017
- July 2017
- March 2017
- February 2017
- November 2016
- September 2016
- August 2016
- July 2016
- April 2016
- November 2015
- September 2015
- July 2015
- April 2015
- March 2015
- February 2015
Categories
- Actions
- Active Directory
- Analytics
- Architecture
- Bug fixing
- CDP/Personalize
- ChatGPT
- Content Edition Experience
- Content Hub
- Continuous Integration
- Dev
- Development
- Environments
- Experience Editor
- Experience Forms
- Front-end
- Health Check builds
- Helix
- How To
- LDAP
- MVP
- MVP Summit
- MVPinny
- Phantom JS
- Powershell
- QA
- Richtext Editor
- Rules
- Security Provider
- SIF
- Sitecore 9
- Sitecore API
- Sitecore Community
- SItecore Connect
- Sitecore Modules
- Sitecore Rocks
- Sitecore Rule Processor
- Sitecore Symposium
- SPE
- SPE-only Alliance
- SPEAK
- SUG
- Support Ticket
- TDS
- Team City
- Uncategorized
- Upgrades
- Visual Studio
- WFFM
- Workflow
- XConnect
- xDB
- XM Cloud