#!/bin/sh HTTP_PORT=9000 HTTP_ADDRESS="127.0.0.1" JVM_OPTIONS="-Dconfig.file=conf/local.conf -Dhttp.port=$HTTP_PORT -Dhttp.address=$HTTP_ADDRESS" LOG_FILE="logs/play.log" PROD_URL="http://en.lichess.org" lilalog () { echo -e "\x1b[7m[lila]\x1b[0m $1" } wait_warmup () { lilalog "Wait warmup" sleep 3 } curl_prod () { lilalog "Test $PROD_URL" curl -sL -w "%{http_code}" -o /dev/null "$PROD_URL" } # load local config [ -f bin/lilarc.local ] && . bin/lilarc.local