Skip to content

Commit

Permalink
makefile: add some explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
avivace committed Jun 4, 2024
1 parent 4bee70b commit 359b90d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,28 @@ reset-psql:
docker volume rm homebrewhub_postgres -f
docker compose up

# Pull updates from the three database repositories
update-db:
cd db-sources/database-gb && git pull
cd db-sources/database-gba && git pull
cd db-sources/database-nes && git pull

# Sync the internal postgres database with the game databases
sync-db:
docker exec hh_api python manage.py runscript sync_db

# Re-init the database sources
init-db:
rm -rf db-sources
mkdir db-sources
git clone https://github.com/gbdev/database.git db-sources/database-gb
git clone https://github.com/gbadev-org/games.git db-sources/database-gba
git clone https://github.com/nesdev-org/homebrew-db.git db-sources/database-nes

# Spawn a shell in the django container
shell:
docker exec -it hh_api bash

# Pull gbtoolsid so it can be used in the sync-db
prepare-gbtid:
cd scripts && wget https://github.com/bbbbbr/gbtoolsid/releases/download/v1.5.0/gbtoolsid_linux.zip && unzip gbtoolsid_linux.zip
cd scripts && wget https://github.com/bbbbbr/gbtoolsid/releases/download/v1.5.0/gbtoolsid_linux.zip && unzip gbtoolsid_linux.zip

0 comments on commit 359b90d

Please sign in to comment.