From ecddd1ddf73e2d5d6bd3e85cc0b6d53947f47d52 Mon Sep 17 00:00:00 2001 From: Matteo Centenaro Date: Thu, 11 Feb 2016 14:22:50 +0100 Subject: [PATCH 1/2] Make sure to start MongoDB server to make tests happy Warn to user to start MongoDB server before running tests. Also, tests was failing because I did not have the tmp/cache dir, so I'm adding it here. --- README.md | 1 + tmp/cache/.gitkeep | 0 2 files changed, 1 insertion(+) create mode 100644 tmp/cache/.gitkeep diff --git a/README.md b/README.md index b8d27f1..e391014 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ provide specs to your contribution. $ gem install bundler $ bundle install + $ start MongoDB server (it is expected to listen on TCP port 27017) $ bundle exec guard Press enter to execute all specs. diff --git a/tmp/cache/.gitkeep b/tmp/cache/.gitkeep new file mode 100644 index 0000000..e69de29 From 0f4d764ecb5a883ce86825365024b198d3e54615 Mon Sep 17 00:00:00 2001 From: Matteo Centenaro Date: Thu, 11 Feb 2016 14:51:57 +0100 Subject: [PATCH 2/2] Move mongod to the install section --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e391014..88d8dc8 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,15 @@ Subscriptions API is tested against MRI 1.9.3. ## Installation +Lelylan subscriptions service requires you to start a MongoDB server (listening on the default 27017 TCP port) + + $ mongod + +Then install all libraries and start the service. + $ git clone git@github.com:lelylan/subscriptions.git && cd subscriptions $ gem install bundler - $ bundle install + $ mongod $ foreman start When installing the service in production set [lelylan environment variables](https://github.com/lelylan/lelylan/blob/master/README.md#production). @@ -33,7 +39,6 @@ provide specs to your contribution. $ gem install bundler $ bundle install - $ start MongoDB server (it is expected to listen on TCP port 27017) $ bundle exec guard Press enter to execute all specs.