Skip to content
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

create the test database for mongodb #1539

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
# Ignore spec/examples.txt
spec/examples.txt

#Ignore phantomjs linux file
phantomjs-2.1.1-linux-x86_64.tar.bz2

# Ignore all logfiles and tempfiles.
/log/*
!/log/.keep
Expand Down
6 changes: 4 additions & 2 deletions config/mongoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ development:
test:
clients:
default:
database: oscar_history_test
database: <%= ENV['HISTORY_DATABASE_NAME'] %>
hosts:
- localhost:27017
- mongo:27017
options:
user: <%= ENV['DATABASE_USER'] %>
password: <%= ENV['DATABASE_PASSWORD'] %>
read:
mode: :primary
max_pool_size: 1
Expand Down