File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,28 @@ reset-psql:
5
5
docker volume rm homebrewhub_postgres -f
6
6
docker compose up
7
7
8
+ # Pull updates from the three database repositories
8
9
update-db :
9
10
cd db-sources/database-gb && git pull
10
11
cd db-sources/database-gba && git pull
11
12
cd db-sources/database-nes && git pull
12
13
14
+ # Sync the internal postgres database with the game databases
13
15
sync-db :
14
16
docker exec hh_api python manage.py runscript sync_db
15
17
18
+ # Re-init the database sources
16
19
init-db :
17
20
rm -rf db-sources
18
21
mkdir db-sources
19
22
git clone https://github.com/gbdev/database.git db-sources/database-gb
20
23
git clone https://github.com/gbadev-org/games.git db-sources/database-gba
21
24
git clone https://github.com/nesdev-org/homebrew-db.git db-sources/database-nes
22
25
26
+ # Spawn a shell in the django container
23
27
shell :
24
28
docker exec -it hh_api bash
25
29
30
+ # Pull gbtoolsid so it can be used in the sync-db
26
31
prepare-gbtid :
27
- cd scripts && wget https://github.com/bbbbbr/gbtoolsid/releases/download/v1.5.0/gbtoolsid_linux.zip && unzip gbtoolsid_linux.zip
32
+ cd scripts && wget https://github.com/bbbbbr/gbtoolsid/releases/download/v1.5.0/gbtoolsid_linux.zip && unzip gbtoolsid_linux.zip
You can’t perform that action at this time.
0 commit comments