Skip to content

Commit

Permalink
chore: enable debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Feb 14, 2025
1 parent 481e226 commit 64950f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:
run: docker compose -f docker-compose.yml -f docker-compose-dev.yml down -v
- name: Start services
run: docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true
- name: Import database
run: |
docker compose cp ./pokeapi.dump db:/tmp/
docker compose exec -T -u postgres db sh -c "cd /tmp && pg_restore -d pokeapi pokeapi.dump"
docker compose exec -T -u postgres db sh -c "cd /tmp && pg_restore -h localhost -U ash -d pokeapi pokeapi.dump"

0 comments on commit 64950f5

Please sign in to comment.