Skip to content

Commit

Permalink
Merge pull request #232 from projectcaluma/make-fulsh
Browse files Browse the repository at this point in the history
chore: add flush to makefile
  • Loading branch information
czosel authored Mar 30, 2022
2 parents 8e46a08 + 9cddff6 commit 877632f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
start:
@docker-compose up -d

loaddata:
@docker-compose exec caluma ./manage.py loaddata setup/example-data.json

clean:
@docker-compose down -v
flush:
@docker-compose exec caluma ./manage.py flush --no-input
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ This includes the following use-cases:
- Fill out a form

## Setup
To start the project you can run either `docker-compose up`
or `make`. To load some example data you can run `make loaddata`.
To start the project you can run `docker-compose up`
To load some example data you can run `make loaddata`.

If you get exceptions from `make loaddata` make sure that the caluma container
is running *and* has all migrations finished.
Expand Down Expand Up @@ -37,6 +37,5 @@ docker-compose exec alexandria ./manage.py loaddata inital_data.json

| Command | Description |
| ----------------------- | -------------------------------------------------- |
| `start` (default target)| Starts all containers |
| `loaddata` | Loads a set of example data |
| `clean` | Stop and remove all containers and remove volumes. |
| `flush` | Flush the caluma container |

0 comments on commit 877632f

Please sign in to comment.