From 2a380d73d2c6ed2b30a643c1bef2b726be145c75 Mon Sep 17 00:00:00 2001 From: Popey Gilbert Date: Fri, 16 Jan 2015 18:34:42 +0000 Subject: [PATCH] Updated Dev Setup: Linux (markdown) --- Dev-Setup:-Linux.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dev-Setup:-Linux.md b/Dev-Setup:-Linux.md index ea028cb..13d871c 100644 --- a/Dev-Setup:-Linux.md +++ b/Dev-Setup:-Linux.md @@ -142,8 +142,11 @@ Pick up upstream changes: ###Installing the Database Download the [CodeCombat database](http://54.91.159.37/dump.tar.gz) (updated every 10 minutes) and import it to your locally running database with the following commands: + 1. Make sure the database is running on your computer (`./bin/coco-mongodb`). + 1. Uncompress the file with `tar xzvf [filename]`) + 1. Run `mongorestore --drop [path to dump]` if mongorestore is in your path. If mongorestore is not in your path, run `[path to CodeCombat folder]/bin/mongo/mongorestore --drop [path to dump]` When downloading a new dump to keep the database up-to-date, use `mongorestore --drop [path to dump]` to clear out all old data (including any local data you have created) and replace with just the new data. \ No newline at end of file