Skip to content

Commit

Permalink
fix tty
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 27, 2023
1 parent dd97756 commit a552367
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
# deploy static files and migrate database
docker compose exec django python manage.py collectstatic --no-input
docker compose exec django python manage.py migrate --no-input
docker-compose exec django python manage.py populate_users
docker-compose exec django python manage.py populate_data
docker compose exec django python manage.py populate_users
docker compose exec django python manage.py populate_data
- name: Run unit tests
run: |
Expand Down
13 changes: 7 additions & 6 deletions scripts/restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ FULL=$1

export COMPOSE_FILE=docker-compose.dev.yml:docker-compose.yml

docker-compose down --volumes || true
docker compose down --volumes || true

docker-compose up --build -d
docker compose up --build -d
sleep 5

if [[ $FULL == "reset" ]];then
docker-compose exec django python manage.py makemigrations
docker-compose exec django python manage.py migrate
docker compose exec django python manage.py makemigrations
docker compose exec django python manage.py migrate
fi

docker-compose exec django python manage.py collectstatic --no-input
docker-compose exec django python manage.py populate
docker compose exec django python manage.py collectstatic --no-input
docker compose exec django python manage.py populate_users
docker compose exec django python manage.py populate_data

0 comments on commit a552367

Please sign in to comment.