Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/g.sh
5546 views
1
set -ev
2
mkdir -p `pwd`/logs
3
export LOGS=`pwd`/logs
4
rm -f $LOGS/log
5
unset INIT_CWD
6
export DEBUG="cocalc:*,-cocalc:silly:*"
7
export 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
16
while true; do
17
if [ x"$COCALC_PROD_MODE" = "x" ]; then
18
pnpm hub
19
else
20
pnpm hub-prod
21
fi
22
sleep 1
23
done
24
25