mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
Updated Dev Setup: Linux (markdown)
parent
2a42091477
commit
a2b86b93f5
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ Pick up upstream changes:
|
||||||
###Installing the Database
|
###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:
|
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. Make sure the database is running on your computer (`./bin/coco-mongodb`).
|
||||||
2. Uncompress the file with `tar xzvf [filename]`)
|
1. Uncompress the file with `tar xzvf [filename]`)
|
||||||
3. 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]`
|
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.
|
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.
|
Loading…
Reference in a new issue