Skip to content

Commit

Permalink
fix hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
thiscaspar committed Nov 21, 2024
1 parent 0a82b7e commit b190f55
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docker/scripts/torii_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
source /root/.bashrc

# Wait for Katana to start
while ! netstat -tuln | grep ':5050 ' > /dev/null; do
sleep 1
done
# TODO: this is not playing nice with katana not on the same server.
if [ ! "$DISABLE_KATANA" == "1" ]; then
while ! netstat -tuln | grep ':5050 ' > /dev/null; do
sleep 1
done
fi

torii \
--rpc "http://0.0.0.0:5050" \
--rpc $RPC_URL \
--world $WORLD_ADDRESS \
--http.cors_origins "*" \
--db-dir $TORII_DB
--db-dir $TORII_DB \
--http.addr 0.0.0.0

0 comments on commit b190f55

Please sign in to comment.