You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo -e "INFO:\t[${THIS_FILE}] Using the demo config file at ${OPTIMADE_CONFIG_FILE}."
echo -e "INFO:\t[${THIS_FILE}] Set the environment variable OPTIMADE_CONFIG_FILE to override this behaviour."
echo -e "INFO:\t[${THIS_FILE}] For more configuration options, please see https://www.optimade.org/optimade-python-tools/configuration/."
fi
export OPTIMADE_LOG_LEVEL=info
if [ "$1"=="debug" ];then
export OPTIMADE_DEBUG=1
export OPTIMADE_LOG_LEVEL=debug
fi
if [ "$1"=="index" ];then
MAIN="main_index"
PORT=5001
if [ "$2"=="debug" ];then
export OPTIMADE_DEBUG=1
export OPTIMADE_LOG_LEVEL=debug
fi
else
if [ "${MAIN}"=="main_index" ];then
PORT=5001
else
MAIN="main"
PORT=5000
fi
fi
echo -e "INFO:\t[${THIS_FILE}] Launching the development server with uvicorn for the ${MAIN} app on port ${PORT} with log level ${OPTIMADE_LOG_LEVEL}."