Skip to content

Commit

Permalink
fix: update deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Sep 25, 2024
1 parent 736287c commit 60e4d17
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
database: dispute_explorer
meilisearch:
api_url: http://localhost:7700
api_key: 2938b40b6c8a907ca74408c51951bd136e50c3f86d6d85a239e83745a89bdf31
api_key: db6989adb79a1b5b8cfed39f7d8b58274dca9063d3930aeb748282aada58a1fe
sync:
- table: dispute_game
index: disputegames
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
mysql:
container_name: mysql
image: mysql:8.4.2
image: mysql:8.0.28
environment:
MYSQL_ROOT_PASSWORD: "root"
restart: always
Expand Down
17 changes: 16 additions & 1 deletion deploy/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,19 @@ echo "$sortEventRsp"

sortGamesUrl="http://localhost:7700/indexes/disputegames/settings/sortable-attributes"
sortGamesRsp=$(curl -X PUT $sortGamesUrl -H "Content-Type: application/json" -H "Authorization: Bearer $bearer_token" -d "$sortable_attributes")
echo $sortGamesRsp
echo "$sortGamesRsp"

maxEventTotalHits='{ "maxTotalHits": 100000 }'
totalEventHitsUrl="http://localhost:7700/indexes/syncevents/settings/sortable-attributes"
maxEventsRsp=$(curl -X PATCH $totalEventHitsUrl -H "Content-Type: application/json" -H "Authorization: Bearer $bearer_token" -d "$maxEventTotalHits")
echo "$maxEventsRsp"

maxGamesTotalHits='{ "maxTotalHits": 100000 }'
totalGamesHitsUrl="http://localhost:7700/indexes/disputegames/settings/sortable-attributes"
maxGamesRsp=$(curl -X PATCH $totalGamesHitsUrl -H "Content-Type: application/json" -H "Authorization: Bearer $bearer_token" -d "$maxGamesTotalHits")
echo "$maxGamesRsp"

setFilter='["id","block_number","get_len_status","claim_data_len"]'
setFilterUrl="http://localhost:7700/indexes/disputegames/settings/filterable-attributes"
setFilterRsp=$(curl -X PUT $setFilterUrl -H "Content-Type: application/json" -H "Authorization: Bearer $bearer_token" -d "$setFilter")
echo "$setFilterRsp"

0 comments on commit 60e4d17

Please sign in to comment.