mirror of
https://codeberg.org/yuukixyz/taiko-web-db.git
synced 2024-09-16 10:56:03 +02:00
スクリプトの削除
This commit is contained in:
parent
9a5d7c9632
commit
58328ca73f
7
clean.sh
7
clean.sh
@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker exec -i --user=git forgejo /bin/bash -c "cd /data/git/repositories/yuuki/taiko-mongo-realtime.git && git reflog expire --expire-unreachable=now --all"
|
||||
docker exec -i --user=git forgejo /bin/bash -c "cd /data/git/repositories/yuuki/taiko-mongo-realtime.git && git gc --aggressive --prune=now"
|
||||
|
||||
git reflog expire --expire-unreachable=now --all
|
||||
git gc --aggressive --prune=now
|
10
pull.sh
10
pull.sh
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker exec -i taiko-mongo mongoexport --db taiko --collection users --out /dev/stdout | sort -n > users.json
|
||||
docker exec -i taiko-mongo mongoexport --db taiko --collection songs --out /dev/stdout | sort -n > songs.json
|
||||
docker exec -i taiko-mongo mongoexport --db taiko --collection scores --out /dev/stdout | sort -n > scores.json
|
||||
|
||||
git add *.json
|
||||
changed=$(git diff --name-only --cached | paste -s -d " ")
|
||||
git commit --author="BOT <bot@example.com>" -m "$changed が更新されました"
|
||||
git push origin main
|
8
push.sh
8
push.sh
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker cp users.json taiko-mongo:/a
|
||||
docker exec -i taiko-mongo mongoimport --db taiko --collection users /a
|
||||
docker cp songs.json taiko-mongo:/b
|
||||
docker exec -i taiko-mongo mongoimport --db taiko --collection songs /b
|
||||
docker cp scores.json taiko-mongo:/c
|
||||
docker exec -i taiko-mongo mongoimport --db taiko --collection scores /c
|
Loading…
Reference in New Issue
Block a user