Skip to content

Commit

Permalink
Remove invocation of clear in every make target
Browse files Browse the repository at this point in the history
This now follows the Unix conventions of not interfering with existing
content on the screen if not needed or requested.
  • Loading branch information
friedelwolff committed May 27, 2024
1 parent ed0498f commit ea2ebfc
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
list:
clear
@echo "Available commands:"
@echo "up - Start the project"
@echo "upd - Start the project in background"
Expand All @@ -25,108 +24,83 @@ list:
@echo "compile-messages - Run command to ensure translation .mo files are created"

up:
clear
@docker compose up

upd:
clear
@docker compose up -d

build:
clear
@docker compose build

stop:
clear
@docker compose stop

down:
clear
@docker compose down

restart:
clear
@docker compose restart

make-migrations:
clear
@docker compose run --rm web python manage.py makemigrations

migrate:
clear
@docker compose run --rm web python manage.py migrate

collectstatic:
clear
@docker compose run --rm web python manage.py collectstatic --noinput

shell:
clear
@docker compose run --rm web python manage.py shell

logs:
clear
@docker compose logs -tf

create-super-user:
clear
@docker compose run --rm web python manage.py createsuperuser

docker-stop-all:
clear
docker stop `docker ps -q`
docker ps

create-schema:
clear
@docker compose run --rm web python manage.py graph_models -a -o schema/schema.png

test:
clear
@docker compose run --rm web python manage.py test

ruff-check:
clear
@docker compose run --rm web ruff check .

ruff-format:
clear
@docker compose run --rm web ruff format .

ruff-fix:
clear
@docker compose run --rm web ruff check --fix .

load-fixtures:
clear
@docker compose run --rm web python manage.py loaddata fixtures/institution.json
@docker compose run --rm web python manage.py loaddata fixtures/projects.json
@docker compose run --rm web python manage.py loaddata fixtures/language.json
@docker compose run --rm web python manage.py loaddata fixtures/subjects.json

pre-commit-install:
clear
pre-commit install

dev-quick-install:
clear
@make migrate
@make load-fixtures
echo "Creating superuser"
@make create-super-user

docker-shell:
clear
docker exec -it sadilar-terminology-web bash

check:
clear
@docker compose run --rm web python manage.py check

make-messages:
clear
@docker compose run --rm web python manage.py makemessages --all

compile-messages:
clear
@docker compose run --rm web python manage.py compilemessages

0 comments on commit ea2ebfc

Please sign in to comment.