From af1ce32637124525eb1c8683c41fb1ba4322c315 Mon Sep 17 00:00:00 2001 From: sorphorn Date: Fri, 13 Dec 2019 09:20:49 +0700 Subject: [PATCH 1/2] create the test database for mongodb --- config/mongoid.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/mongoid.yml b/config/mongoid.yml index fdd867de61..caf9ec3e74 100644 --- a/config/mongoid.yml +++ b/config/mongoid.yml @@ -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 From c3ef52494acc5693c34a81785cf07cd6a891b9e2 Mon Sep 17 00:00:00 2001 From: sorphorn Date: Fri, 13 Dec 2019 22:18:39 +0700 Subject: [PATCH 2/2] remove unnecessary file --- .gitignore | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8289c96816..f656f67078 100644 --- a/.gitignore +++ b/.gitignore @@ -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