gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
60
Makefile
Normal file
60
Makefile
Normal file
@@ -0,0 +1,60 @@
|
||||
app ?= web
|
||||
shell ?= bash
|
||||
|
||||
up:
|
||||
docker compose up
|
||||
|
||||
build:
|
||||
docker compose build
|
||||
|
||||
up-b:
|
||||
docker compose up -b
|
||||
|
||||
db:
|
||||
docker compose exec db sh
|
||||
|
||||
restart:
|
||||
docker compose restart $(app)
|
||||
|
||||
collect:
|
||||
docker compose exec web poetry run python manage.py collectstatic
|
||||
|
||||
makemigrations:
|
||||
docker compose exec web poetry run python manage.py makemigrations
|
||||
|
||||
up-d:
|
||||
docker compose up -d
|
||||
|
||||
logging:
|
||||
docker compose logs -f web
|
||||
|
||||
down:
|
||||
docker compose down
|
||||
|
||||
migrate:
|
||||
docker compose exec web poetry run python manage.py migrate
|
||||
|
||||
superuser:
|
||||
docker compose exec web poetry run python manage.py createsuperuser
|
||||
|
||||
shell:
|
||||
@echo "Following logs for: $(app) shell: $(shell)"
|
||||
docker compose exec $(app) $(shell)
|
||||
|
||||
test:
|
||||
docker compose exec web poetry run python manage.py test
|
||||
|
||||
chown:
|
||||
sudo chown -R user:user ./*
|
||||
|
||||
connect:
|
||||
@echo "Following logs for: $(app)"
|
||||
docker compose logs -f $(app)
|
||||
|
||||
pull:
|
||||
git pull
|
||||
|
||||
push:
|
||||
git add . && git commit -m "$(comment)" && git push
|
||||
|
||||
.PHONY: up
|
||||
Reference in New Issue
Block a user