Skip to content

Commit

Permalink
Makefile: Update docker-compose service names (app -> backend/frontend)
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
  • Loading branch information
tsmock authored and dakotabenjamin committed Aug 29, 2023
1 parent 34fccfd commit 71ed49f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ifndef DOCKER_COMPOSE_VERSION
endif

build:
docker-compose build --no-cache app
docker-compose build --no-cache backend frontend

up:
docker network inspect tm-web >/dev/null 2>&1 || \
Expand All @@ -24,21 +24,21 @@ list:
docker-compose ps

refresh-frontend:
docker-compose exec app sh -c "cd frontend && npm run build"
docker-compose exec frontend sh -c "cd frontend && npm run build"

refresh-translatables:
docker-compose exec app sh -c "cd frontend && yarn build-locales"
docker-compose exec frontend sh -c "cd frontend && yarn build-locales"

refresh-translations:
docker-compose exec app sh -c "tx pull -af"
docker-compose exec frontend sh -c "tx pull -af"

tests:test-frontend test-backend

test-frontend:
docker-compose exec app sh -c "cd /usr/src/app/frontend && CI=true npm test"
docker-compose exec frontend sh -c "cd /usr/src/app/frontend && CI=true npm test"

test-backend:
docker-compose exec app sh -c "python -m unittest discover tests/backend"
docker-compose exec backend sh -c "python -m unittest discover tests/backend"

fetch:
ifndef PRNUMBER
Expand Down

0 comments on commit 71ed49f

Please sign in to comment.