File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ test_fast: ## Can pass in parameters using p=''
80
80
load_talks : up
81
81
docker-compose exec app flask load_talks
82
82
83
+ superuser : up
84
+ docker-compose exec app flask createsuperuser $(username ) $(password )
85
+
83
86
84
87
# Flake 8
85
88
# options: http://flake8.pycqa.org/en/latest/user/options.html
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ make migration m='migration message'
24
24
#### Run
25
25
26
26
``` console
27
+ make up
27
28
make migrate
28
- make migrate_back
29
+ make load_talks
30
+ make superuser username=myuser password=insecure
29
31
```
30
32
31
33
### Makefile Commands
41
43
make down stops service and removes containers
42
44
43
45
make migrate run migrations
46
+ make migrate_back run reverse migrations
44
47
make test run tests
45
48
make test_cov run tests with coverage.py
46
49
make test_fast run tests without migrations
51
54
make shell connect to app container in new bash shell
52
55
make dbshell connect to postgres inside db container
53
56
make load_talks Load Talk data into Talks table from data/talks_db_dump.csv
57
+ make superuser username=myuser password=insecure
54
58
```
55
59
56
60
## Overriding Default Docker-Compose Settings
You can’t perform that action at this time.
0 commit comments