mirror of
https://codeberg.org/yuukixyz/taiko-web-db.git
synced 2024-10-22 11:05:43 +02:00
GCを別ファイルに移動
This commit is contained in:
parent
b27c0d96ac
commit
ad742a782f
7
clean.sh
Normal file
7
clean.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/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
|
6
pull.sh
6
pull.sh
@ -4,12 +4,6 @@ docker exec -i taiko-mongo mongoexport --db taiko --collection users --out /dev/
|
|||||||
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 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
|
docker exec -i taiko-mongo mongoexport --db taiko --collection scores --out /dev/stdout | sort -n > scores.json
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
git add *.json
|
git add *.json
|
||||||
changed=$(git diff --name-only --cached | paste -s -d " ")
|
changed=$(git diff --name-only --cached | paste -s -d " ")
|
||||||
git commit --author="BOT <bot@example.com>" -m "$changed が更新されました"
|
git commit --author="BOT <bot@example.com>" -m "$changed が更新されました"
|
||||||
|
Loading…
Reference in New Issue
Block a user