mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-10-30 05:57:12 +00:00
* chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: refactor wip * chore: work in progress * chore: refactor wip * chore: refactor wip * chore: refactor wip * fix: build * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
.DEFAULT_GOAL := help
|
|
|
|
COMPOSE_DEV = docker compose -f docker-compose.yml -f docker-compose.dev.local.yml
|
|
COMPOSE_PROD = docker compose -f docker-compose.yml
|
|
|
|
.PHONY: help deps build pull up up-dev down setup deploy
|
|
|
|
help:
|
|
@echo "Usage:"
|
|
@echo " make logs - Check Docker container logs"
|
|
@echo " make deps - Build frontend assets"
|
|
@echo " make build - Build Docker images"
|
|
@echo " make build-force - Build Docker images"
|
|
@echo " make pull - Pull Docker images"
|
|
@echo " make up - Start production environment"
|
|
@echo " make up-dev - Start development environment"
|
|
@echo " make down - Stop and remove containers, networks, images, and volumes"
|
|
@echo " make setup - Setup server with dependencies and clone repo"
|
|
@echo " make deploy - Deploy site onto server"
|
|
@echo " make cypress-start - Start Cypress"
|
|
@echo ""
|
|
|
|
logs:
|
|
docker compose logs -f
|
|
|
|
deps:
|
|
pdm install
|
|
npm install
|
|
npm run build
|
|
|
|
build:
|
|
$(COMPOSE_DEV) build
|
|
|
|
build-force:
|
|
$(COMPOSE_DEV) build --no-cache
|
|
|
|
pull:
|
|
docker compose pull
|
|
|
|
up:
|
|
$(COMPOSE_PROD) up -d --force-recreate
|
|
|
|
up-dev:
|
|
$(COMPOSE_DEV) up -d --force-recreate
|
|
|
|
down:
|
|
$(COMPOSE_DEV) down
|
|
$(COMPOSE_PROD) down
|
|
|
|
setup:
|
|
ansible-playbook -i ./ansible/inventory.yaml ./ansible/setup.yaml
|
|
|
|
deploy:
|
|
ansible-playbook -i ./ansible/inventory.yaml ./ansible/deploy_site.yaml -v
|
|
|
|
build-ci:
|
|
docker compose -f docker-compose.yml -f docker-compose.dev.yml build
|
|
|
|
up-ci:
|
|
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --force-recreate
|
|
|
|
cypress-start:
|
|
DISPLAY=:0 npx cypress open
|
|
|
|
cypress-run:
|
|
npx cypress run
|