Create generic Make command to run Django manage.py (#886)
See https://github.com/grafana/oncall/pull/868
This commit is contained in:
parent
491093100a
commit
c517569108
2 changed files with 7 additions and 0 deletions
3
Makefile
3
Makefile
|
|
@ -166,3 +166,6 @@ run-backend-celery:
|
|||
|
||||
backend-command:
|
||||
$(call backend_command,$(CMD))
|
||||
|
||||
backend-manage-command:
|
||||
$(call backend_command,python manage.py $(CMD))
|
||||
|
|
@ -104,6 +104,10 @@ make dbshell # opens a DB shell
|
|||
make exec-engine # exec into engine container's bash
|
||||
make test # run backend tests
|
||||
|
||||
# run Django's `manage.py` script, passing `$CMD` as arguments.
|
||||
# e.g. `make backend-manage-command makemigrations` - https://docs.djangoproject.com/en/4.1/ref/django-admin/#django-admin-makemigrations
|
||||
make backend-manage-command CMD="..."
|
||||
|
||||
# run both frontend and backend linters
|
||||
# may need to run `yarn install` from within `grafana-plugin` to install several `pre-commit` dependencies
|
||||
make lint
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue