Skip to content

Commit

Permalink
Remove pipenv from docker-compose commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
anybodys committed Sep 23, 2024
1 parent 9646b5c commit fc1a0be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ setup:
pipenv install --dev

setup-virtual-display:
pipenv run Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

run: run-api

run-api: setup-virtual-display
pipenv run docker-compose up -d --build
docker-compose up -d --build

db-migrate:
pipenv run docker-compose exec api python manage.py migrate --noinput
docker-compose exec api python manage.py migrate --noinput

db-makemigrations:
pipenv run docker-compose exec api python manage.py makemigrations --noinput
docker-compose exec api python manage.py makemigrations --noinput

db-shell:
pipenv run docker-compose exec db psql artist local-user
db-shell: run
docker-compose exec db psql artist postgres

test: setup-virtual-display
pipenv run docker-compose -f docker-compose-test.yml up --build --abort-on-container-exit --force-recreate --remove-orphans
docker-compose -f docker-compose-test.yml up --build --abort-on-container-exit --force-recreate

clean:
find . -name '*~' -delete
Expand Down

0 comments on commit fc1a0be

Please sign in to comment.