1set -ev 2mkdir -p `pwd`/logs 3export LOGS=`pwd`/logs 4rm -f $LOGS/log 5unset INIT_CWD 6export DEBUG="cocalc:*,-cocalc:silly:*" 7export DEBUG_CONSOLE="no" 8 9# Set this COCALC_DISABLE_NEXT to something nonempty to disable nextjs entirely 10# which is very helpful when doing development. 11# export COCALC_DISABLE_NEXT="yes" 12 13#export COCALC_DISABLE_API_VALIDATION=yes 14#export NO_RSPACK_DEV_SERVER=yes 15 16while true; do 17 if [ x"$COCALC_PROD_MODE" = "x" ]; then 18 pnpm hub 19 else 20 pnpm hub-prod 21 fi 22 sleep 1 23done 24 25