summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-03-31 10:52:07 -0700
committerelijah <elijah@riseup.net>2015-03-31 10:52:07 -0700
commite4679c66565d0ccae54ffc58a23083841e5585e7 (patch)
tree2cc7fbb5d3e6a48d21a605a8411da38ea8c999e3 /README.md
parent2365129a1dcbb1231f0ac22d4bf975007a0c460d (diff)
fix travis: use couchdb.admin.yml and pin travis ruby version to one that is installed on travis-ci.org
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index e399ee2..f2d69ca 100644
--- a/README.md
+++ b/README.md
@@ -113,7 +113,8 @@ Running
To run leap_web:
cd leap_web
- bin/rake couchrest:migrate
+ bin/rake db:rotate
+ bin/rake db:migrate
bin/rails server
Then open http://localhost:3000 in your web browser.
@@ -124,12 +125,19 @@ powers by creating an account with username 'staff', 'blue', or 'red'
To peruse the database, visit http://localhost:5984/_utils/
+The task `db:rotate` must come before `db:migrate`, in order to assure that
+the special rotating databases get created.
+
+Do not run the normal CouchRest task 'couchrest:migrate'. Instead, use
+'db:rotate' since the latter will correctly use the couchdb.admin.yml file.
+
Testing
--------------------------------
To run all tests
- bin/rake couchrest:migrate # if not already run
+ bin/rake RAILS_ENV=test db:rotate # if not already run
+ bin/rake RAILS_ENV=test db:migrate # if not already run
bin/rake test
To run an individual test: