Problem: there is no way to easily reset the DB (#2149)

Solution: Add a `reset` recipe for our Makefile
This commit is contained in:
vrde 2018-03-23 14:39:43 +01:00 committed by codegeschrei
parent f157096699
commit 283b664e6a
2 changed files with 6 additions and 1 deletions

View File

@ -85,6 +85,9 @@ doc: ## Generate HTML documentation and open it in the browser
clean: clean-build clean-pyc clean-test ## Remove all build, test, coverage and Python artifacts
@$(ECHO) "Cleaning was successful."
reset: check-deps ## Stop and REMOVE all containers. WARNING: you will LOSE all data stored in BigchainDB.
@$(DC) down
###############
# Sub targets #
###############

View File

@ -20,7 +20,7 @@ cd bigchaindb
make run
```
To know the IP of the instance running, execute in a new terminal `make ip`.
BigchainDB should be reachable now on `http://localhost:9984/`.
There are also other commands you can execute:
- `make start`: Run BigchainDB from source and daemonize it (stop it with `make stop`).
@ -30,6 +30,8 @@ There are also other commands you can execute:
- `make test-watch`: Run all tests and wait. Every time you change code, tests will be run again.
- `make cov`: Check code coverage and open the result in the browser.
- `make doc`: Generate HTML documentation and open it in the browser.
- `make clean`: Remove all build, test, coverage and Python artifacts.
- `make reset`: Stop and REMOVE all containers. WARNING: you will LOSE all data stored in BigchainDB.
To view all commands available, run `make`.