Skip to content

Commit

Permalink
fix: fixes the theme error (#859)
Browse files Browse the repository at this point in the history
* fix: fixes the theme error

* refactor: rename theme to default
  • Loading branch information
yokwejuste authored Oct 11, 2023
1 parent d5a5183 commit cb0774c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion zubhub_backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,17 @@ admin-user:
docker-compose -f docker-compose.yml exec web bash -c "rm /dummy.sh"
.PHONY: admin-user

init: .env start migrate admin-user ## Initialize docker-compose containers
add-theme:
@echo "==="
@echo "== Add a theme to the database =="
@echo "==="
docker-compose -f docker-compose.yml exec web bash -c "echo 'echo \"from zubhub.models import Theme; \
Theme.objects.create(Theme_Name=\\\"Default\\\", status=\\\"1\\\") if not Theme.objects.filter(Theme_Name=\\\"Default\\\").exists() else None\" | python /zubhub_backend/zubhub/manage.py shell' > /theme.sh"
docker-compose -f docker-compose.yml exec web bash /theme.sh
docker-compose -f docker-compose.yml exec web bash -c "rm /theme.sh"
.PHONY: add-theme

init: .env start migrate admin-user add-theme ## Initialize docker-compose containers
.PHONY: init

search-index:
Expand Down

0 comments on commit cb0774c

Please sign in to comment.