-
Notifications
You must be signed in to change notification settings - Fork 29
DOCSP-42735: configure cxn #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCSP-42735: configure cxn #49
Conversation
✅ Deploy Preview for docs-mongoid ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few suggestions but otherwise LGTM!
We want to access the ``sample_restaurants`` database for this tutorial. | ||
For example, if the connection string for your Atlas cluster is | ||
``"mongodb+srv://user0:pass123@mongo0.example.com/"``, you can | ||
specify the target database as shown in the following code: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be modified to just introduce the code example to avoid using "we" and to make it more closely mirror our other repos.
We want to access the ``sample_restaurants`` database for this tutorial. | |
For example, if the connection string for your Atlas cluster is | |
``"mongodb+srv://user0:pass123@mongo0.example.com/"``, you can | |
specify the target database as shown in the following code: | |
The following example specifies the ``sample_restaurants`` database in a connection string: |
|
||
.. code-block:: none | ||
|
||
mongodb+srv://user0:pass123@mongo0.example.com/sample_restaurants |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mongodb+srv://user0:pass123@mongo0.example.com/sample_restaurants | |
mongodb+srv://<username>:<password>@mongo0.example.com/sample_restaurants |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave the connection string as is an specify that its a sample
In your project, create the ``config`` directory, then create a | ||
file in this directory called ``mongoid.yml``. | ||
|
||
Paste the following configuration into the file, making sure to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paste the following configuration into the file, making sure to | |
Paste the following configuration into the ``mongoid.yml`` file, making sure to |
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-42735
Staging - https://deploy-preview-49--docs-mongoid.netlify.app/quick-start-sinatra/configure-mongodb/
Self-Review Checklist