Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/g.sh
1492 views
1
set -ev
2
mkdir -p `pwd`/logs
3
export LOGS=`pwd`/logs
4
rm -f $LOGS/log
5
unset INIT_CWD
6
unset PGHOST
7
export DEBUG="cocalc:*,-cocalc:silly:*"
8
export DEBUG_CONSOLE="no"
9
10
# Set this COCALC_DISABLE_NEXT to something nonempty to disable nextjs entirely
11
# which is very helpful when doing development.
12
# export COCALC_DISABLE_NEXT="yes"
13
14
#export COCALC_DISABLE_API_VALIDATION=yes
15
#export NO_RSPACK_DEV_SERVER=yes
16
17
while true; do
18
if [ x"$COCALC_PROD_MODE" = "x" ]; then
19
pnpm hub
20
else
21
pnpm hub-prod
22
fi
23
sleep 1
24
done
25
26